Tcl 8.1 test suite failures with --enable-threads
Deleted217855ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 00:44:57
OriginalBugID: 1973 Bug
Version: 8.1
SubmitDate: '1999-05-04'
LastModified: '1999-08-31'
Severity: LOW
Status: Closed
Submitter: pat
ChangedBy: hobbs
RelatedBugIDs: 2550
OS: Solaris
OSVersion: 7 (i.e. SunOS 5.7)
Machine: Other
FixedDate: '2000-10-25'
ClosedDate: '1999-08-31'
Name:
David R. Linn
Extensions:
none (yet)
CustomShell:
none
Comments:
Failure of a package to pass all of its *own* tests makes me very
uneasy about installing it for my (unsuspecting) users.
This is the second of two reports on "make test" with Tcl v8.1
and Solaris 7. This one shows two additional test failures seen
with the --enable-threads option to configure that are not seen
without the --enable-threads option.
I am willing to entertain suggestions that this is a problem with
the configuration of the Solaris 7 system and not really a Tcl
problem (but that seems less likely in this case than in the unix.init
case).
ReproducibleScript:
configure --enable-threads
make all
make test
ObservedBehavior:
Tests began at Sun May 02 17:19:54 CDT 1999
append.test
assocd.test
async.test
autoMkindex.test
basic.test
binary.test
case.test
clock.test
cmdAH.test
cmdIL.test
cmdInfo.test
cmdMZ.test
compExpr-old.test
compExpr.test
compile.test
concat.test
dcall.test
dstring.test
encoding.test
env.test
error.test
eval.test
event.test
==== event-1.1 Tcl_CreateFileHandler, reading FAILED
==== Contents of test case:
testfilehandler close
testfilehandler create 0 readable off
testfilehandler clear 0
testfilehandler oneevent
set result ""
lappend result [testfilehandler counts 0]
testfilehandler fillpartial 0
testfilehandler oneevent
lappend result [testfilehandler counts 0]
testfilehandler oneevent
lappend result [testfilehandler counts 0]
testfilehandler close
set result
---- Result was:
{0 0} {0 0} {0 0}
---- Result should have been:
{0 0} {1 0} {2 0}
==== event-1.1 FAILED
exec.test
execute.test
expr-old.test
expr.test
fCmd.test
fileName.test
for-old.test
for.test
foreach.test
format.test
get.test
history.test
http.test
Running httpd in thread 5
httpold.test
Running http 1.0 tests in slave interp
httpold.test:Total31Passed31Skipped0Failed0
if-old.test
if.test
incr-old.test
incr.test
indexObj.test
info.test
init.test
interp.test
io.test
==== io-13.6 TranslateInputEOL: auto mode: saw cr in last segment
FAILED
==== Contents of test case:
# (chanPtr->flags & INPUT_SAW_CR)
# This test may fail on slower machines.
set f [open "|[list $tcltest cat]" w+]
fconfigure $f -blocking 0 -buffering none -translation {auto lf}
fileevent $f read "ready $f"
proc ready {f} {
lappend ::x [read $f] [testchannel queuedcr $f]
}
set x {}
puts -nonewline $f "abcdefghj\r"
after 500 {set y ok}
vwait y
puts -nonewline $f "\n01234"
after 500 {set y ok}
vwait y
close $f
set x
---- Result was:
{abcdefghj
01234} 0
---- Result should have been:
{abcdefghj
} 1 01234 0
==== io-13.6 FAILED
==== io-50.5 testing handler deletion vs reentrant calls FAILED
==== Contents of test case:
removeFile test1
set f [open test1 w]
close $f
set f [open test1 r]
testchannelevent $f add readable [list notcalled $f]
testchannelevent $f add readable [list del $f]
proc notcalled {f} {
global z
lappend z "notcalled was called!! $f"
}
proc del {f} {
global z u
if {"$u" == "recursive"} {
testchannelevent $f delete 1
testchannelevent $f delete 0
lappend z "del deleted notcalled"
lappend z "del deleted myself"
} else {
set u recursive
lappend z "del calling recursive"
update
lappend z "del after update"
}
}
set z ""
set u toplevel
update
close $f
string compare [string tolower $z] [list {del calling recursive}
{del deleted notcalled} {del deleted myself} {del after update}]
---- Result was:
-1
---- Result should have been:
0
==== io-50.5 FAILED
==== io-50.6 testing handler deletion vs reentrant calls FAILED
==== Contents of test case:
removeFile test1
set f [open test1 w]
close $f
set f [open test1 r]
testchannelevent $f add readable [list second $f]
testchannelevent $f add readable [list first $f]
proc first {f} {
global u z
if {"$u" == "toplevel"} {
lappend z "first called"
set u first
update
lappend z "first after update"
} else {
lappend z "first called not toplevel"
}
}
proc second {f} {
global u z
if {"$u" == "first"} {
lappend z "second called, first time"
set u second
testchannelevent $f delete 0
} elseif {"$u" == "second"} {
lappend z "second called, second time"
testchannelevent $f delete 0
} else {
lappend z "second called, cannot happen!"
testchannelevent $f removeall
}
}
set z ""
set u toplevel
update
close $f
string compare [string tolower $z] [list {first called} {first
called not toplevel} {second called, first time} {second called, second
time} {first after update}]
---- Result was:
-1
---- Result should have been:
0
==== io-50.6 FAILED
ioCmd.test
ioUtil.test
join.test
lindex.test
link.test
linsert.test
list.test
listObj.test
llength.test
load.test
lrange.test
lreplace.test
lsearch.test
macFCmd.test
misc.test
msgcat.test
namespace-old.test
namespace.test
obj.test
opt.test
osa.test
parse.test
parseExpr.test
parseOld.test
pid.test
pkg.test
pkgMkIndex.test
platform.test
proc-old.test
proc.test
pwd.test
reg.test
!!! bypassed 22 tests in 23, `reg multicharacter collating elements'
!!! bypassed 2 tests in 26, `reg mixed quantifiers'
regexp.test
registry.test
rename.test
resource.test
result.test
safe.test
scan.test
security.test
set-old.test
set.test
socket.test
source.test
split.test
stack.test
string.test
stringObj.test
subst.test
switch.test
thread.test
timer.test
trace.test
unixFCmd.test
unixFile.test
unixInit.test
==== unixInit-3.2 TclpSetInitialEncodings FAILED
==== Contents of test case:
set env(LANG) japanese
set f [open "|[list $tcltest]" w+]
fconfigure $f -buffering none
puts $f {puts [encoding system]; exit}
set enc [gets $f]
close $f
unset env(LANG)
set enc
---- Result was:
iso8859-1
---- Result should have been:
euc-jp
==== unixInit-3.2 FAILED
unixNotfy.test
unknown.test
uplevel.test
upvar.test
utf.test
util.test
var.test
while-old.test
while.test
winConsole.test
winDde.test
winFCmd.test
winFile.test
winNotify.test
winPipe.test
winTime.test
Tests ended at Sun May 02 17:25:46 CDT 1999
all.tcl:Total8472Passed7740Skipped727Failed5
Sourced 118 Test Files.
Files with failing tests: event.test io.test unixInit.test
Number of tests skipped for each constraint:
1595
2LANGisC
16doTestsWithRemoteServer
48emptyTest
27knownBug
122macOnly
151nonPortable
16nt
327pcOnly
1umask2
2unixOnly && !testthread
DesiredBehavior:
Either "make test" should pass all tests or the README should at
least warn me that failure is expected
welch Deleted ticket [217855ffff].
[History diff]2000-10-26 07:59:48
Log in (anonymous is fine) to add a comment.