Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2004-10-27
00:21 • Ticket [1002884fff] Test fCmd-28.16 file link glob failure status still Clos... artifact: c5c6bb885a user: dgp
2004-08-31
16:16 • Closed ticket [1002884fff]. artifact: 6819125e83 user: vincentdarley
2004-08-03
20:40 • New ticket [1002884fff]. artifact: 46d60563b7 user: techentin

Test fCmd-28.16 file link glob failure

Closed / Fixed1002884fffffffffffffffffffffffffffffffffCreated 22 years agoUpdated 22 years ago
Descriptionplain2004-08-03 20:40:21
On Fedora core 2 Linux with Tcl 8.4.7, I get a test
failure for fCmd-28.16.

==== fCmd-28.16 file link: glob inside link FAILED
==== Contents of test case:
 
    cd [temporaryDirectory]
    file delete -force abc.link
    file link abc.link abc.dir
    set res [glob -dir abc.link -tails *]
    cd [workingDirectory]
    set res
 
---- Result was:
abc2.file abc.file
---- Result should have been (exact matching):
abc.file abc2.file
==== fCmd-28.16 FAILED
 



I suspect that, since glob order isn't guaranteed, we
just need to lsort the return value to make the test
consistent.

*** fCmd.test~  Thu Oct  9 21:08:50 2003
--- fCmd.test   Tue Aug  3 15:38:30 2004
***************
*** 2364,2370 ****
      cd [temporaryDirectory]
      file delete -force abc.link
      file link abc.link abc.dir
!     set res [glob -dir abc.link -tails *]
      cd [workingDirectory]
      set res
  } {abc.file abc2.file}
--- 2364,2370 ----
      cd [temporaryDirectory]
      file delete -force abc.link
      file link abc.link abc.dir
!     set res [lsort [glob -dir abc.link -tails *]]
      cd [workingDirectory]
      set res
  } {abc.file abc2.file}
vincentdarleyplain2004-08-31 16:16:57
Logged In: YES 
user_id=32170

Thanks fixed.
dgpplain2004-10-27 00:21:02
Logged In: YES 
user_id=80530

this fix should be backported
for 8.4.8
Log in (anonymous is fine) to add a comment.