|
2003-09-18
| ||
| 18:42 | • Closed ticket [808247ffff]: error in fileName.test plus 7 other changes artifact: c7d6e8d2c6 user: vincentdarley | |
| 17:05 | • Ticket [808247ffff]: 4 changes artifact: 30a686465b user: vincentdarley | |
| 16:55 | • Ticket [808247ffff]: 4 changes artifact: 3953d71adf user: msofer | |
| 16:24 | • Ticket [808247ffff]: 4 changes artifact: 62c097894d user: vincentdarley | |
| 00:09 | • New ticket [808247ffff]. artifact: b67aa96490 user: dgp | |
error in fileName.test
Closed / Fixed808247ffffffffffffffffffffffffffffffffffCreated 23 years agoUpdated 23 years ago
Descriptionplain2003-09-18 00:09:52
During a 'make test' following
the 2003-09-16 commits to
the HEAD, I see:
$ make test TESTFLAGS="-file fileName.test -verbose bpste"
...
---- filename-17.1 start
++++ filename-17.1 PASSED
++++ filename-17.2 SKIPPED: winOnly
Test file error: couldn't change working directory to
"/local/src/tcl/unix": no such file or directory
while executing
"cd [temporaryDirectory]"
(file "/local/src/tcl/tests/fileName.test" line 1888)
Tests ended at Wed Sep 17 08:07:51 PM EDT 2003
all.tcl: Total 0 Passed 0 Skipped
0 Failed 0
Sourced 1 Test Files.
Test files exiting with errors:
fileName.test
The [cd [temporaryDirectory]] near the bottom of
the file is failing, but not sensibly, since it complains
about non-existence of a directory that does in
fact exist.
vincentdarleyplain2003-09-18 16:24:33
Logged In: YES user_id=32170 Well, that's very strange. fileName.test wasn't actually modified, and the *only* C change I made was to tclPathObj.c which *should* have only affected Windows. I did make one minor mistake, where 'int type' should be 'Tcl_PathType type' around line 1177, but I don't see why that should be a problem here! (see the diff: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/tcl/tcl/generic/tclPathObj.c.diff?r1=1.6&r2=1.7 ) If possible can you put a breakpoint in the code where it says 'Only Windows has volume-relative paths' -- if that code path is reached on your unix system, we can hopefully diagnose this further and solve it.
msoferplain2003-09-18 16:55:18
Logged In: YES user_id=148712 Well, I can confirm that something is wrong in filename.test: I saw it start thrashing like crazy, and then exit with an error. I assumed it was due to this bug, so did not investigate further. This is on linux.
vincentdarleyplain2003-09-18 17:05:45
Logged In: YES user_id=32170 The only hunch I have is that perhaps the new code is being exercised on unix when the test suite manually does 'tclsetplatform windows' to test windows-path manipulation, and that that manual switch is causing all the trouble. Perhaps, therefore, the best solution is simply to wrap the new block of code in a #ifdef __WIN32__, to be 100% sure it doesn't operate on Unix.
vincentdarleyplain2003-09-18 18:42:31
Logged In: YES user_id=32170 Ok, I believe I've fixed this. Managed some limited testing on sf's compilefarm (but cf doesn't seem to work too well at present).
Log in (anonymous is fine) to add a comment.