Overview
| Artifact ID: | 3a345ebb79676a608371fc9557549fdf65bce4bd |
|---|---|
| Ticket: | 554068ffffffffffffffffffffffffffffffffff
Windows: [exec] doesn't quote special chars |
| User & Date: | vincentdarley on 2002-05-09 11:25:05 |
Changes
- assignee changed to: "dgp"
- cmimetype changed to: "text/plain"
- comment changed to:
If I rename 'tcl8.4' to 'tcl[{8.4' and try to run the test suite ('make test') from within there, 8 tests fail: Tests ended at Wed May 08 7:56:31 PM GMT Daylight Time 2002 all.tcl: Total 10164 Passed 9479 Skipped 677 Failed 8 Sourced 128 Test Files. Files with failing tests: io.test tcltest.test C:\Tcl-source\tcl{[8.4\win> The actual failures are listed below, and seem to be due to just two specific problems. I've attached a patch which I think fixes both problems (but tested only on Windows): io.test ==== io-34.10 Tcl_Seek testing flushing of buffered input FAILED ==== Contents of test case: set f [open test3 w] fconfigure $f -translation lf puts $f xyz\n123 close $f set f [open test3 r+] fconfigure $f -translation lf set x [gets $f] seek $f 0 current puts $f 456 close $f list $x [viewFile test3] ---- Result was: /usr/bin/cat: C:/Tcl-source/tcl: No such file or directory ---- Result should have been (exact matching): xyz {xyz 456} ---- Test generated error; Return code was: 1 ---- Return code should have been one of: 0 2 ==== io-34.10 FAILED ==== io-34.11 Tcl_Seek testing flushing of buffered output FAILED ==== Contents of test case: set f [open test3 w] puts $f xyz\n123 close $f set f [open test3 w+] puts $f xyzzy seek $f 2 set x [gets $f] close $f list $x [viewFile test3] ---- Result was: /usr/bin/cat: C:/Tcl-source/tcl: No such file or directory ---- Result should have been (exact matching): zzy xyzzy ---- Test generated error; Return code was: 1 ---- Return code should have been one of: 0 2 ==== io-34.11 FAILED ==== io-34.12 Tcl_Seek testing combination of write, seek back and read FAILED ==== Contents of test case: set f [open test3 w] fconfigure $f -translation lf -eofchar {} puts $f xyz\n123 close $f set f [open test3 a+] fconfigure $f -translation lf -eofchar {} puts $f xyzzy flush $f set x [tell $f] seek $f -4 cur set y [gets $f] close $f list $x [viewFile test3] $y ---- Result was: /usr/bin/cat: C:/Tcl-source/tcl: No such file or directory ---- Result should have been (exact matching): 14 {xyz 123 xyzzy} zzy ---- Test generated error; Return code was: 1 ---- Return code should have been one of: 0 2 ==== io-34.12 FAILED ==== io-40.7 POSIX open access modes: EXCL FAILED ==== Contents of test case: removeFile test3 set f [open test3 {WRONLY CREAT EXCL}] fconfigure $f -eofchar {} puts $f "A test line" close $f viewFile test3 ---- Result was: /usr/bin/cat: C:/Tcl-source/tcl: No such file or directory ---- Result should have been (exact matching): A test line ---- Test generated error; Return code was: 1 ---- Return code should have been one of: 0 2 ==== io-40.7 FAILED ==== io-40.13 POSIX open access modes: WRONLY FAILED ==== Contents of test case: makeFile xyzzy test3 set f [open test3 WRONLY] fconfigure $f -eofchar {} puts -nonewline $f "ab" seek $f 0 current set x [list [catch {gets $f} msg] $msg] close $f lappend x [viewFile test3] string compare [string tolower $x] [list 1 "channel \"$f\" wasn't opened fo r reading" abzzy] ---- Result was: /usr/bin/cat: C:/Tcl-source/tcl: No such file or directory ---- Result should have been (exact matching): 0 ---- Test generated error; Return code was: 1 ---- Return code should have been one of: 0 2 ==== io-40.13 FAILED ==== io-40.15 POSIX open access modes: RDWR FAILED ==== Contents of test case: makeFile xyzzy test3 set f [open test3 RDWR] puts -nonewline $f "ab" seek $f 0 current set x [gets $f] close $f lappend x [viewFile test3] ---- Result was: /usr/bin/cat: C:/Tcl-source/tcl: No such file or directory ---- Result should have been (exact matching): zzy abzzy ---- Test generated error; Return code was: 1 ---- Return code should have been one of: 0 2 ==== io-40.15 FAILED tcltest.test ==== tcltest-8.13 tcltest a.tcl -testdir normaldirectory FAILED ==== Contents of test case: catch {exec $::tcltest::tcltest a.tcl -testdir normaldirectory} msg # The join is necessary because the message can be split on multiple lines regexp "testdir: $normaldirectory" [join $msg] ---- Result was: couldn't compile regular expression pattern: brackets [] not balanced ---- Result should have been (exact matching): 1 ---- Test generated error; Return code was: 1 ---- Return code should have been one of: 0 2 ==== tcltest-8.13 FAILED ==== tcltest-23.5 viewFile FAILED ==== Contents of test case: set mfdir [file join [tcltest::temporaryDirectory] mfdir] file mkdir $mfdir makeFile {foobar} t1.tmp makeFile {foobarbaz} t2.tmp $mfdir list [viewFile t1.tmp] [viewFile t2.tmp $mfdir] ---- Result was: /usr/bin/cat: C:/Tcl-source/tcl: No such file or directory ---- Result should have been (exact matching): foobar foobarbaz ---- Test generated error; Return code was: 1 ---- Return code should have been one of: 0 2 ==== tcltest-23.5 FAILED - foundin changed to: "obsolete: 8.4a5"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "vincentdarley"
- subsystem changed to: "34. tcltest Package"
- title changed to: "test suite failes with dir '{['"
- type changed to: "Bug"