Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2004-03-30
17:10 • Closed ticket [918320ffff]: tests filename-10.(9,22) fail plus 7 other chang... artifact: 6387f8f2f0 user: vincentdarley
04:44 • Ticket [918320ffff]: 4 changes artifact: cd28aeacd7 user: dgp
01:17 • Ticket [918320ffff]: 4 changes artifact: 0300a6fa52 user: vincentdarley
01:12 • Ticket [918320ffff]: 4 changes artifact: 46f0f1258d user: dgp
01:12 • Add attachment 918320.patch to ticket [918320ffff] artifact: 67cf0438b4 user: dgp
00:34 • Ticket [918320ffff] tests filename-10.(9,22) fail status still Open with 4 o... artifact: 301e24ce1f user: dgp
00:25 • Ticket [918320ffff]: 4 changes artifact: 2b8453d78f user: dgp
2004-03-28
01:52 • Ticket [918320ffff]: 4 changes artifact: c90292143d user: vincentdarley
2004-03-17
21:30 • New ticket [918320ffff]. artifact: 4cd8989a45 user: dgp

tests filename-10.(9,22) fail

Closed / Fixed918320ffffffffffffffffffffffffffffffffffCreated 23 years agoUpdated 23 years ago
Descriptionplain2004-03-17 21:30:10
On Unix systems:

==== filename-10.9 Tcl_TranslateFileName FAILED
==== Contents of test case:

    global env
    set temp $env(HOME)
    set env(HOME) "/home/test/"
    testsetplatform unix
    set result [list [catch {testtranslatefilename ~}
msg] $msg]
    set env(HOME) $temp
    set result

---- Result was:
0 /home/test/
---- Result should have been (exact matching):
0 /home/test
==== filename-10.9 FAILED


==== filename-10.22 Tcl_TranslateFileName FAILED
==== Contents of test case:

    testsetplatform windows
    list [catch {testtranslatefilename foo//bar} msg] $msg

---- Result was:
0 {foo\\bar}
---- Result should have been (exact matching):
0 {foo\bar}
==== filename-10.22 FAILED


This may be a consequence of excising
the Mac code?
vincentdarleyplain2004-03-28 01:52:05
Logged In: YES 
user_id=32170

Can you isolate which change in cvs lead to this failure?
dgpplain2004-03-30 00:25:59
Logged In: YES 
user_id=80530

these tests pass before the
Mac OS Classic platform
removal, and fail afterwards.
dgpplain2004-03-30 00:34:33
Logged In: YES 
user_id=80530

more precisely, reverting
tclPathObj.c to revision 1.24
restores the tests to passing.

tclPathObj.c 1.24 -> 1.25
caused the tests to fail.
dgpplain2004-03-30 01:12:10
File Added - 81783: 918320.patch

Logged In: YES 
user_id=80530


here's the patch that fixes things.
vincentdarleyplain2004-03-30 01:17:03
Logged In: YES 
user_id=32170

That looks good -- I'm actually working on a slightly
different fix which removes the 'equal' variable in favour
of a few goto's -- it actually looks a bit cleaner, but has
the same effect.

I'm happy with either fix, though.
dgpplain2004-03-30 04:44:49
Logged In: YES 
user_id=80530

cleaner is better.  Is it on the way?
vincentdarleyplain2004-03-30 17:10:30
Logged In: YES 
user_id=32170

Fixed.
Log in (anonymous is fine) to add a comment.

Attachments: