|
2001-04-23
| ||
| 02:24 | • Ticket [218799ffff] When compiling on Windows NT 4.0 test set fails on io.test</... artifact: f7543dfc9d user: dgp | |
|
2000-10-26
| ||
| 08:29 | • Closed ticket [218799ffff]. artifact: 07d67a6de9 user: welch | |
| 01:05 | • New ticket [218799ffff]. artifact: 5134220861 user: nobody | |
When compiling on Windows NT 4.0 test set fails on io.test
Closed / Fixed218799ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 01:05:36
OriginalBugID: 2153 Bug
Version: 8.1.1
SubmitDate: '1999-06-03'
LastModified: '1999-08-31'
Severity: LOW
Status: Released
Submitter: techsupp
ChangedBy: hobbs
OS: Windows NT
Machine: X86
FixedDate: '1999-08-31'
FixedInVersion: 8.2
ClosedDate: '2000-10-25'
Name:
Lindsay Gill
ReproducibleScript:
When compiling 'test' from makefile the compilation gives an error
message
ObservedBehavior:
io.test
==== io-14.1 Tcl_SetStdChannel and Tcl_GetStdChannel FAILED
==== Contents of test case:
set l ""
lappend l [fconfigure stdin -buffering]
lappend l [fconfigure stdout -buffering]
lappend l [fconfigure stderr -buffering]
lappend l [lsort [testchannel open]]
set l
==== Test generated error:
can not find channel named "stdin"
---- Result should have been:
line line none {file285cd8 file285dd8}
==== io-14.1 FAILED
==== io-14.2 Tcl_SetStdChannel and Tcl_GetStdChannel FAILED
==== Contents of test case:
interp create x
set l ""
lappend l [x eval {fconfigure stdin -buffering}]
lappend l [x eval {fconfigure stdout -buffering}]
lappend l [x eval {fconfigure stderr -buffering}]
interp delete x
set l
==== Test generated error:
can not find channel named "stdin"
---- Result should have been:
line line none
==== io-14.2 FAILED
==== io-14.5 Tcl_GetChannel: stdio name translation FAILED
==== Contents of test case:
interp create z
eof stdin
catch {z eval flush stdin} msg1
catch {z eval close stdin} msg2
catch {z eval flush stdin} msg3
set result [list $msg1 $msg2 $msg3]
interp delete z
set result
==== Test generated error:
can not find channel named "stdin"
---- Result should have been:
{channel "stdin" wasn't opened for writing} {} {can not find channel
named "stdin"}
==== io-14.5 FAILED
==== io-14.6 Tcl_GetChannel: stdio name translation FAILED
==== Contents of test case:
interp create z
eof stdout
catch {z eval flush stdout} msg1
catch {z eval close stdout} msg2
catch {z eval flush stdout} msg3
set result [list $msg1 $msg2 $msg3]
interp delete z
set result
==== Test generated error:
interpreter named "z" already exists, cannot create
---- Result should have been:
{} {} {can not find channel named "stdout"}
==== io-14.6 FAILED
==== io-14.7 Tcl_GetChannel: stdio name translation FAILED
==== Contents of test case:
interp create z
eof stderr
catch {z eval flush stderr} msg1
catch {z eval close stderr} msg2
catch {z eval flush stderr} msg3
set result [list $msg1 $msg2 $msg3]
interp delete z
set result
==== Test generated error:
interpreter named "z" already exists, cannot create
---- Result should have been:
{} {} {can not find channel named "stderr"}
==== io-14.7 FAILED
==== io-17.1 GetChannelTable, DeleteChannelTable on std handles FAILED
==== Contents of test case:
set l1 [testchannel refcount stdin]
eof stdin
interp create x
set l ""
lappend l [expr [testchannel refcount stdin] - $l1]
x eval {eof stdin}
lappend l [expr [testchannel refcount stdin] - $l1]
interp delete x
lappend l [expr [testchannel refcount stdin] - $l1]
set l
==== Test generated error:
can not find channel named "stdin"
---- Result should have been:
0 1 0
==== io-17.1 FAILED
==== io-17.2 GetChannelTable, DeleteChannelTable on std handles FAILED
==== Contents of test case:
set l1 [testchannel refcount stdout]
eof stdin
interp create x
set l ""
lappend l [expr [testchannel refcount stdout] - $l1]
x eval {eof stdout}
lappend l [expr [testchannel refcount stdout] - $l1]
interp delete x
lappend l [expr [testchannel refcount stdout] - $l1]
set l
==== Test generated error:
can not find channel named "stdin"
---- Result should have been:
0 1 0
==== io-17.2 FAILED
==== io-17.3 GetChannelTable, DeleteChannelTable on std handles FAILED
==== Contents of test case:
set l1 [testchannel refcount stderr]
eof stdin
interp create x
set l ""
lappend l [expr [testchannel refcount stderr] - $l1]
x eval {eof stderr}
lappend l [expr [testchannel refcount stderr] - $l1]
interp delete x
lappend l [expr [testchannel refcount stderr] - $l1]
set l
==== Test generated error:
can not find channel named "stdin"
---- Result should have been:
0 1 0
==== io-17.3 FAILED
==== io-18.1 Tcl_RegisterChannel, Tcl_UnregisterChannel FAILED
==== Contents of test case:
removeFile test1
set l ""
set f [open test1 w]
lappend l [lindex [testchannel info $f] 15]
close $f
if {[catch {lindex [testchannel info $f] 15} msg]} {
lappend l $msg
} else {
lappend l "very broken: $f found after being closed"
}
string compare [string tolower $l] [list 1 [format "can not find
channel named \"%s\"" $f]]
---- Result was:
1
---- Result should have been:
0
==== io-18.1 FAILED
==== io-18.2 Tcl_RegisterChannel, Tcl_UnregisterChannel FAILED
==== Contents of test case:
removeFile test1
set l ""
set f [open test1 w]
lappend l [lindex [testchannel info $f] 15]
interp create x
interp share "" $f x
lappend l [lindex [testchannel info $f] 15]
x eval close $f
lappend l [lindex [testchannel info $f] 15]
interp delete x
lappend l [lindex [testchannel info $f] 15]
close $f
if {[catch {lindex [testchannel info $f] 15} msg]} {
lappend l $msg
} else {
lappend l "very broken: $f found after being closed"
}
string compare [string tolower $l] [list 1 2 1 1 [format "can not
find channel named \"%s\"" $f]]
==== Test generated error:
interpreter named "x" already exists, cannot create
---- Result should have been:
0
==== io-18.2 FAILED
==== io-18.3 Tcl_RegisterChannel, Tcl_UnregisterChannel FAILED
==== Contents of test case:
removeFile test1
set l ""
set f [open test1 w]
lappend l [lindex [testchannel info $f] 15]
interp create x
interp share "" $f x
lappend l [lindex [testchannel info $f] 15]
interp delete x
lappend l [lindex [testchannel info $f] 15]
close $f
if {[catch {lindex [testchannel info $f] 15} msg]} {
lappend l $msg
} else {
lappend l "very broken: $f found after being closed"
}
string compare [string tolower $l] [list 1 2 1 [format "can not
find channel named \"%s\"" $f]]
==== Test generated error:
error deleting "test1": permission denied
---- Result should have been:
0
==== io-18.3 FAILED
==== io-19.2 testing Tcl_GetChannel, user opened handle FAILED
==== Contents of test case:
removeFile test1
set f [open test1 w]
set x [eof $f]
close $f
set x
==== Test generated error:
error deleting "test1": permission denied
---- Result should have been:
0
==== io-19.2 FAILED
==== io-19.4 Tcl_CreateChannel, insertion into channel table FAILED
==== Contents of test case:
removeFile test1
set f [open test1 w]
set l ""
lappend l [eof $f]
close $f
if {[catch {lindex [testchannel info $f] 15} msg]} {
lappend l $msg
} else {
lappend l "very broken: $f found after being closed"
}
string compare [string tolower $l] [list 0 [format "can not find
channel named \"%s\"" $f]]
==== Test generated error:
error deleting "test1": permission denied
---- Result should have been:
0
==== io-19.4 FAILED
==== io-23.1 Tcl_GetChannelName FAILED
==== Contents of test case:
removeFile test1
set f [open test1 w]
set n [testchannel name $f]
close $f
string compare $n $f
==== Test generated error:
error deleting "test1": permission denied
---- Result should have been:
0
==== io-23.1 FAILED
==== io-24.1 Tcl_GetChannelType FAILED
==== Contents of test case:
removeFile test1
set f [open test1 w]
set t [testchannel type $f]
close $f
string compare $t file
==== Test generated error:
error deleting "test1": permission denied
---- Result should have been:
0
==== io-24.1 FAILED
==== io-25.2 Tcl_GetChannelHandle, output FAILED
==== Contents of test case:
removeFile test1
set f [open test1 w]
fconfigure $f -translation lf
puts $f hello
set l ""
lappend l [testchannel outputbuffered $f]
lappend l [tell $f]
flush $f
lappend l [testchannel outputbuffered $f]
lappend l [tell $f]
close $f
removeFile test1
set l
==== Test generated error:
error deleting "test1": permission denied
---- Result should have been:
6 6 0 6
==== io-25.2 FAILED
==== io-27.1 FlushChannel, no output buffered FAILED
==== Contents of test case:
removeFile test1
set f [open test1 w]
flush $f
set s [file size test1]
close $f
set s
==== Test generated error:
error deleting "test1": permission denied
---- Result should have been:
0
==== io-27.1 FAILED
==== io-27.2 FlushChannel, some output buffered FAILED
==== Contents of test case:
removeFile test1
set f [open test1 w]
fconfigure $f -translation lf -eofchar {}
set l ""
puts $f hello
lappend l [file size test1]
flush $f
lappend l [file size test1]
close $f
lappend l [file size test1]
set l
==== Test generated error:
error deleting "test1": permission denied
---- Result should have been:
0 6 6
==== io-27.2 FAILED
==== io-27.3 FlushChannel, implicit flush on close FAILED
==== Contents of test case:
removeFile test1
set f [open test1 w]
fconfigure $f -translation lf -eofchar {}
set l ""
puts $f hello
lappend l [file size test1]
close $f
lappend l [file size test1]
set l
==== Test generated error:
error deleting "test1": permission denied
---- Result should have been:
0 6
==== io-27.3 FAILED
==== io-27.4 FlushChannel, implicit flush when buffer fills FAILED
==== Contents of test case:
removeFile test1
set f [open test1 w]
fconfigure $f -translation lf -eofchar {}
fconfigure $f -buffersize 60
set l ""
lappend l [file size test1]
for {set i 0} {$i < 12} {incr i} {
puts $f hello
}
lappend l [file size test1]
flush $f
lappend l [file size test1]
close $f
set l
==== Test generated error:
error deleting "test1": permission denied
---- Result should have been:
0 60 72
==== io-27.4 FAILED
==== io-27.5 FlushChannel, implicit flush when buffer fills and on close
FAILED
==== Contents of test case:
removeFile test1
set f [open test1 w]
fconfigure $f -translation lf -buffersize 60 -eofchar {}
set l ""
lappend l [file size test1]
for {set i 0} {$i < 12} {incr i} {
puts $f hello
}
lappend l [file size test1]
close $f
lappend l [file size test1]
set l
==== Test generated error:
error deleting "test1": permission denied
---- Result should have been:
0 60 72
==== io-27.5 FAILED
==== io-28.1 CloseChannel called when all references are dropped FAILED
==== Contents of test case:
removeFile test1
set f [open test1 w]
interp create x
interp share "" $f x
set l ""
lappend l [testchannel refcount $f]
x eval close $f
interp delete x
lappend l [testchannel refcount $f]
close $f
set l
==== Test generated error:
error deleting "test1": permission denied
---- Result should have been:
2 1
==== io-28.1 FAILED
==== io-28.2 CloseChannel called when all references are dropped FAILED
==== Contents of test case:
removeFile test1
set f [open test1 w]
interp create x
interp share "" $f x
puts -nonewline $f abc
close $f
x eval puts $f def
x eval close $f
interp delete x
set f [open test1 r]
set l [gets $f]
close $f
set l
==== Test generated error:
error deleting "test1": permission denied
---- Result should have been:
abcdef
==== io-28.2 FAILED
==== io-28.4 Tcl_Close FAILED
==== Contents of test case:
removeFile test1
set l ""
lappend l [lsort [testchannel open]]
set f [open test1 w]
lappend l [lsort [testchannel open]]
close $f
lappend l [lsort [testchannel open]]
set x [list $consoleFileNames [lsort [eval list $consoleFileNames
$f]] $consoleFileNames]
string compare $l $x
==== Test generated error:
error deleting "test1": permission denied
---- Result should have been:
0
==== io-28.4 FAILED
==== io-29.1 Tcl_WriteChars, channel not writable FAILED
==== Contents of test case:
list [catch {puts stdin hello} msg] $msg
---- Result was:
0 {}
---- Result should have been:
1 {channel "stdin" wasn't opened for writing}
==== io-29.1 FAILED
==== io-29.2 Tcl_WriteChars, empty string FAILED
==== Contents of test case:
removeFile test1
set f [open test1 w]
fconfigure $f -eofchar {}
puts -nonewline $f ""
close $f
file size test1
==== Test generated error:
error deleting "test1": permission denied
---- Result should have been:
0
==== io-29.2 FAILED
==== io-29.3 Tcl_WriteChars, nonempty string FAILED
==== Contents of test case:
removeFile test1
set f [open test1 w]
fconfigure $f -eofchar {}
puts -nonewline $f hello
close $f
file size test1
==== Test generated error:
error deleting "test1": permission denied
---- Result should have been:
5
==== io-29.3 FAILED
==== io-29.4 Tcl_WriteChars, buffering in full buffering mode FAILED
==== Contents of test case:
removeFile test1
set f [open test1 w]
fconfigure $f -translation lf -buffering full -eofchar {}
puts $f hello
set l ""
lappend l [testchannel outputbuffered $f]
lappend l [file size test1]
flush $f
lappend l [testchannel outputbuffered $f]
lappend l [file size test1]
close $f
set l
==== Test generated error:
error deleting "test1": permission denied
---- Result should have been:
6 0 0 6
==== io-29.4 FAILED
==== io-29.5 Tcl_WriteChars, buffering in line buffering mode FAILED
==== Contents of test case:
removeFile test1
set f [open test1 w]
fconfigure $f -translation lf -buffering line -eofchar {}
puts -nonewline $f hello
set l ""
lappend l [testchannel outputbuffered $f]
lappend l [file size test1]
puts $f hello
lappend l [testchannel outputbuffered $f]
lappend l [file size test1]
close $f
set l
==== Test generated error:
error deleting "test1": permission denied
---- Result should have been:
5 0 0 11
==== io-29.5 FAILED
==== io-29.6 Tcl_WriteChars, buffering in no buffering mode FAILED
==== Contents of test case:
removeFile test1
set f [open test1 w]
fconfigure $f -translation lf -buffering none -eofchar {}
puts -nonewline $f hello
set l ""
lappend l [testchannel outputbuffered $f]
lappend l [file size test1]
puts $f hello
lappend l [testchannel outputbuffered $f]
lappend l [file size test1]
close $f
set l
==== Test generated error:
error deleting "test1": permission denied
---- Result should have been:
0 5 0 11
==== io-29.6 FAILED
==== io-29.7 Tcl_Flush, full buffering FAILED
==== Contents of test case:
removeFile test1
set f [open test1 w]
fconfigure $f -translation lf -buffering full -eofchar {}
puts -nonewline $f hello
set l ""
lappend l [testchannel outputbuffered $f]
lappend l [file size test1]
puts $f hello
lappend l [testchannel outputbuffered $f]
lappend l [file size test1]
flush $f
lappend l [testchannel outputbuffered $f]
lappend l [file size test1]
close $f
set l
==== Test generated error:
error deleting "test1": permission denied
---- Result should have been:
5 0 11 0 0 11
==== io-29.7 FAILED
==== io-29.8 Tcl_Flush, full buffering FAILED
==== Contents of test case:
removeFile test1
set f [open test1 w]
fconfigure $f -translation lf -buffering line
puts -nonewline $f hello
set l ""
lappend l [testchannel outputbuffered $f]
lappend l [file size test1]
flush $f
lappend l [testchannel outputbuffered $f]
lappend l [file size test1]
puts $f hello
lappend l [testchannel outputbuffered $f]
lappend l [file size test1]
flush $f
lappend l [testchannel outputbuffered $f]
lappend l [file size test1]
close $f
set l
==== Test generated error:
error deleting "test1": permission denied
---- Result should have been:
5 0 0 5 0 11 0 11
==== io-29.8 FAILED
==== io-29.9 Tcl_Flush, channel not writable FAILED
==== Contents of test case:
list [catch {flush stdin} msg] $msg
---- Result was:
0 {}
---- Result should have been:
1 {channel "stdin" wasn't opened for writing}
==== io-29.9 FAILED
==== io-29.10 Tcl_WriteChars, looping and buffering FAILED
==== Contents of test case:
removeFile test1
set f1 [open test1 w]
fconfigure $f1 -translation lf -eofchar {}
set f2 [open longfile r]
for {set x 0} {$x < 10} {incr x} {
puts $f1 [gets $f2]
}
close $f2
close $f1
file size test1
==== Test generated error:
error deleting "test1": permission denied
---- Result should have been:
387
==== io-29.10 FAILED
==== io-29.11 Tcl_WriteChars, no newline, implicit flush FAILED
==== Contents of test case:
removeFile test1
set f1 [open test1 w]
fconfigure $f1 -eofchar {}
set f2 [open longfile r]
for {set x 0} {$x < 10} {incr x} {
puts -nonewline $f1 [gets $f2]
}
close $f1
close $f2
file size test1
==== Test generated error:
error deleting "test1": permission denied
---- Result should have been:
377
==== io-29.11 FAILED
==== io-29.12 Tcl_WriteChars on a pipe FAILED
==== Contents of test case:
removeFile test1
removeFile pipe
set f1 [open pipe w]
puts $f1 {
set f1 [open longfile r]
for {set x 0} {$x < 10} {incr x} {
puts [gets $f1]
}
}
close $f1
set f1 [open "|[list $tcltest pipe]" r]
set f2 [open longfile r]
set y ok
for {set x 0} {$x < 10} {incr x} {
set l1 [gets $f1]
set l2 [gets $f2]
if {"$l1" != "$l2"} {
set y broken
}
}
close $f1
close $f2
set y
==== Test generated error:
error deleting "test1": permission denied
---- Result should have been:
ok
==== io-29.12 FAILED
==== io-29.13 Tcl_WriteChars to a pipe, line buffered FAILED
==== Contents of test case:
removeFile test1
removeFile pipe
set f1 [open pipe w]
puts $f1 {
puts [gets stdin]
puts [gets stdin]
}
close $f1
set y ok
set f1 [open "|[list $tcltest pipe]" r+]
fconfigure $f1 -buffering line
set f2 [open longfile r]
set line [gets $f2]
puts $f1 $line
set backline [gets $f1]
if {"$line" != "$backline"} {
set y broken
}
set line [gets $f2]
puts $f1 $line
set backline [gets $f1]
if {"$line" != "$backline"} {
set y broken
}
close $f1
close $f2
set y
==== Test generated error:
error deleting "test1": permission denied
---- Result should have been:
ok
==== io-29.13 FAILED
==== io-29.15 Tcl_Flush, channel not open for writing FAILED
==== Contents of test case:
removeFile test1
set fd [open test1 w]
close $fd
set fd [open test1 r]
set x [list [catch {flush $fd} msg] $msg]
close $fd
string compare $x [list 1 "channel \"$fd\" wasn't opened for
writing"]
==== Test generated error:
error deleting "test1": permission denied
---- Result should have been:
0
==== io-29.15 FAILED
==== io-29.17 Tcl_WriteChars buffers, then Tcl_Flush flushes FAILED
==== Contents of test case:
removeFile test1
set f1 [open test1 w]
fconfigure $f1 -translation lf
puts $f1 hello
puts $f1 hello
puts $f1 hello
flush $f1
set x [file size test1]
close $f1
set x
==== Test generated error:
error deleting "test1": permission denied
---- Result should have been:
18
==== io-29.17 FAILED
==== io-29.18 Tcl_WriteChars and Tcl_Flush intermixed FAILED
==== Contents of test case:
removeFile test1
set x ""
set f1 [open test1 w]
fconfigure $f1 -translation lf
puts $f1 hello
puts $f1 hello
puts $f1 hello
flush $f1
lappend x [file size test1]
puts $f1 hello
flush $f1
lappend x [file size test1]
puts $f1 hello
flush $f1
lappend x [file size test1]
close $f1
set x
==== Test generated error:
error deleting "test1": permission denied
---- Result should have been:
18 24 30
==== io-29.18 FAILED
==== io-29.19 Explicit and implicit flushes FAILED
==== Contents of test case:
removeFile test1
set f1 [open test1 w]
fconfigure $f1 -translation lf -eofchar {}
set x ""
puts $f1 hello
puts $f1 hello
puts $f1 hello
flush $f1
lappend x [file size test1]
puts $f1 hello
flush $f1
lappend x [file size test1]
puts $f1 hello
close $f1
lappend x [file size test1]
set x
==== Test generated error:
error deleting "test1": permission denied
---- Result should have been:
18 24 30
==== io-29.19 FAILED
==== io-29.20 Implicit flush when buffer is full FAILED
==== Contents of test case:
removeFile test1
set f1 [open test1 w]
fconfigure $f1 -translation lf -eofchar {}
set line
"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
for {set x 0} {$x < 100} {incr x} {
puts $f1 $line
}
set z ""
lappend z [file size test1]
for {set x 0} {$x < 100} {incr x} {
puts $f1 $line
}
lappend z [file size test1]
close $f1
lappend z [file size test1]
set z
==== Test generated error:
error deleting "test1": permission denied
---- Result should have been:
4096 12288 12600
==== io-29.20 FAILED
==== io-29.28 Tcl_WriteChars, lf mode FAILED
==== Contents of test case:
removeFile test1
set f [open test1 w]
fconfigure $f -translation lf -eofchar {}
puts $f hello\nthere\nand\nhere
flush $f
set s [file size test1]
close $f
set s
==== Test generated error:
error deleting "test1": permission denied
---- Result should have been:
21
==== io-29.28 FAILED
==== io-29.29 Tcl_WriteChars, cr mode FAILED
==== Contents of test case:
removeFile test1
set f [open test1 w]
fconfigure $f -translation cr -eofchar {}
puts $f hello\nthere\nand\nhere
close $f
file size test1
==== Test generated error:
error deleting "test1": permission denied
---- Result should have been:
21
==== io-29.29 FAILED
==== io-29.30 Tcl_WriteChars, crlf mode FAILED
==== Contents of test case:
removeFile test1
set f [open test1 w]
fconfigure $f -translation crlf -eofchar {}
puts $f hello\nthere\nand\nhere
close $f
file size test1
==== Test generated error:
error deleting "test1": permission denied
---- Result should have been:
25
==== io-29.30 FAILED
The test suites run clean on 8.2 for WinNT when run locally.
Some problems have been noted with running the tests in a non-local
partition (rather, a Unix partition mounted on Windows) that seem
to be related to the software doing the mounting.
-- 08/31/1999 hobbs
welch Closed ticket [218799ffff].
[History diff]2000-10-26 08:29:15
dgp Ticket [218799ffff]: 3 changes
[History diff]2001-04-23 02:24:53
Log in (anonymous is fine) to add a comment.