Artifacts Associated With Ticket 217830ffffffffff
Ticket change [464bc2b20c] (rid 99495) by nobody on 2000-10-26 00:44:34:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
OriginalBugID: 1578 Bug Version: 8.1b2 SubmitDate: '1999-03-22' LastModified: '1999-03-24' Severity: MED Status: Closed Submitter: pat ChangedBy: admin RelatedBugIDs: 1570 OS: SunOS OSVersion: 5.6 (SPARC) Machine: Sparc FixedDate: '2000-10-25' ClosedDate: '1999-03-24' Name: Taketo Kabe ReproducibleScript: on UNIX source distribution, $ make test or $ env LD_LIBRARY_PATH=../unix ../unix/tcltest % cd ../tests % source io.test ObservedBehavior: io-52.8 test fails as >> ---- Result was: >> 0 0 DesiredBehavior: >> ---- Result should have been: >> 40 40 Patch: *** io.test.distSun Mar 14 03:08:21 1999 --- io.testSun Mar 21 23:44:00 1999 *************** *** 6408,6420 **** puts $f1 { puts ready gets stdin ! set f1 [open $thisScript r] fconfigure $f1 -translation lf puts [read $f1 100] close $f1 } close $f1 ! set f1 [open "|[list $tcltest pipe]" r+] fconfigure $f1 -translation lf gets $f1 puts $f1 ready --- 6408,6420 ---- puts $f1 { puts ready gets stdin ! set f1 [open [lindex $argv 0] r] fconfigure $f1 -translation lf puts [read $f1 100] close $f1 } close $f1 ! set f1 [open "|[list $tcltest pipe $thisScript]" r+] fconfigure $f1 -translation lf gets $f1 puts $f1 ready PatchFiles: tests/io.test Former versions of io.test used "[info script]" to retrieve the script filename (mainly for obtaining read-only datafile), but 8.1b2 has optimized these to "$thisScript". No problem but for one place which is used in pipe-invoked interpreter. As the external interp can't resolve the filename, it just reads nothing and returns zero bytes. My patch passes $thisScript explicitly as an argument to resolve this. This bug was already reported and patched in bug 1570. 03/24/1999 20:02 - admin - - foundin initialized to: "obsolete: 8.1b2"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "nobody"
- subsystem initialized to: "61. (unused)"
- title initialized to:
Test script "io.test" io-52.8 always fail; unexpandable $thi
- type initialized to: "Bug"
Ticket change [0c333166a0] (rid 114136) by welch on 2000-10-26 07:59:45:
- closedate changed to: "2000-10-26T00:59:45"
- closer changed to: "welch"
- priority changed to: "2"
- resolution changed to: "Invalid"
- status changed to: "Closed"
Ticket change [a53f3a1328] (rid 110340) by dgp on 2001-04-05 08:23:14:
- closedate changed to: "2001-04-05T01:23:14"
- closer changed to: "dgp"
- subsystem changed to: "53. Configuration and Build Tools"
- title changed to:
Test script "io.test" io-52.8 always fail; unexpandable $thi