Artifacts Associated With Ticket 703264ffffffffff
Ticket change [33276f67ed] (rid 106534) by nobody on 2003-03-13 22:24:18:
- assignee initialized to: "dkf"
- cmimetype initialized to: "text/plain"
- comment initialized to:
On my machine, /home is a symlink to /work2 -- a possibility that the tests cmdAH-8.43 and cmdAH-8.45 does not consider. The results I see reported as erroneous are in fact correct: ==== cmdAH-8.43 Tcl_FileObjCmd: dirname FAILED ==== Contents of test case: global env set temp $env(HOME) set env(HOME) "/home/test" testsetplatform unix set result [list [catch {file dirname ~} msg] $msg] set env(HOME) $temp set result ---- Result was: 0 /work2 ---- Result should have been (exact matching): 0 /home ==== cmdAH-8.43 FAILED ==== cmdAH-8.45 Tcl_FileObjCmd: dirname FAILED ==== Contents of test case: global env set temp $env(HOME) set env(HOME) "/home/test" testsetplatform windows set result [list [catch {file dirname ~} msg] $msg] set env(HOME) $temp set result ---- Result was: 0 /work2 ---- Result should have been (exact matching): 0 /home ==== cmdAH-8.45 FAILED Having reviewed these failures, I am quite confident about going ahead and installing the software. Reported by: Jonathan Leffler <[email protected]> <[email protected]> Test environment is Sun UltraSparc, Solaris 7, GCC 3.2.1, Tcl 8.4.2, not that any of these are particularly important to reproducing this problem. The only key to the reproduction is that /home is a symlink to somewhere else. One day, I'll get my Sourceforge ID reactivated. - foundin initialized to: "obsolete: 8.4.2"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "nobody"
- subsystem initialized to: "16. Commands A-H"
- title initialized to:
cmdAH-8.43, 8.45 fail spuriously when /home is symlink
- type initialized to: "Bug"
Ticket change [9eb5d46ad8] (rid 96527) by dkf on 2003-03-14 21:30:10:
- assignee changed to: "vincentdarley"
Ticket change [6397cd0a2f] (rid 92602) by vincentdarley on 2003-03-17 22:27:05:
- icomment:
Logged In: YES user_id=32170 Does replacing the result line of those tests with: } [list 0 [expr {([file type /home] == "link") ? "/home" : [file readlink /home]}]] solve this testsuite issue? - login: "vincentdarley"
- mimetype: "text/plain"
- username: "vincentdarley"
- icomment:
Ticket change [50d49fd71d] (rid 126040) by vincentdarley on 2003-03-17 22:33:58:
- icomment:
Logged In: YES user_id=32170 Make that: } [list 0 [expr {([file exists /home] && ([file type /home] == "link")) ? [file readlink /home] : "/home"}]] works for me. - login: "vincentdarley"
- mimetype: "text/plain"
- username: "vincentdarley"
- icomment:
Ticket change [ccf1ff1bc0] (rid 95797) by jleffler on 2003-03-19 01:39:58:
- icomment:
Logged In: YES user_id=22937 I modified cmdAH.test with the 'make that' version of the change, and to my considerable surprise, cmdAH-8.43 still failed as before but cmdAH-8.45 now passed. The only difference between these two tests is the testsetplatorm (unix in 8.43, windows in 8.45). I don't understand this result. I did a double-check to ensure that I had the same change in both places, and that was correct. I also reverted to the original test and got the double failure again as originally reported. Frankly, I'm not sure how to debug this...
- login: "jleffler"
- mimetype: "text/plain"
- username: "jleffler"
- icomment:
Ticket change [f470b044d5] (rid 129918) by vincentdarley on 2003-03-19 01:44:38:
- icomment:
Logged In: YES user_id=32170 How about reverting to the original test, but replacing '/home' by '/homewontexist' i.e. a name that shouldn't actually exist on anyone's machine? Seems to be closer in spirit to what the test is actually trying to do.
- login: "vincentdarley"
- mimetype: "text/plain"
- username: "vincentdarley"
- icomment:
Ticket change [4cb1cd328b] (rid 126934) by jleffler on 2003-03-19 05:09:40:
- icomment:
Logged In: YES user_id=22937 If the tests are indeed meant to be testing for a non-existent directory, then yes, use a more obscure name -- /home/test doesn't sound very improbable to me. In such cases, I use a long name that makes it quite clear that it is not supposed to exist -- /you/should/not/have/created/this/directory. That is much simpler to analyse -- I'd certainly recommend that if the test is really trying to deal with non-existent directories. Another, less reliable but probably OK alternative, is to use /syzygy/nadir/zenith or something similarly obscure, watching for whether you need to obey 8.3 or similar filename limitations.
- login: "jleffler"
- mimetype: "text/plain"
- username: "jleffler"
- icomment:
Ticket change [cbb969f202] (rid 95572) by vincentdarley on 2003-04-11 23:32:26:
- closedate changed to: "2003-04-11T16:32:26"
- closer changed to: "vincentdarley"
- icomment:
Logged In: YES user_id=32170 fixed in cvs head
- login: "vincentdarley"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "vincentdarley"