basic.test needs write access to .
Closed / Fixed575817ffffffffffffffffffffffffffffffffffCreated 24 years agoUpdated 24 years ago
Descriptionplain2002-07-01 04:12:55
Tcl's test suites should be written to write
any files that need writing into the
directory [::tcltest::temporaryDirectory].
That way, the test suite can run even
by users without write access to the
build area, given a suitable -tmpdir
argument.
basic.test has 5 failing tests in this situation:
==== basic-26.1 Tcl_EvalObj: preserve object while
evaling it FAILED
==== Contents of test case:
# If object isn't preserved, errorInfo would be set to
# "foo\n while executing\n\"garbage bytes\""
because the object's
# string would have been freed, leaving garbage
bytes for the error
# message.
proc bgerror {args} {set ::x $::errorInfo}
set f [open test1 w]
fileevent $f writable "fileevent $f writable {};
error foo"
set x {}
vwait x
close $f
file delete test1
rename bgerror {}
set x
---- Result was:
couldn't open "test1": permission denied
---- Result should have been (exact matching):
foo
while executing
"error foo"
---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
==== basic-26.1 FAILED
==== basic-46.2 Tcl_AllowExceptions: exception return
not allowed FAILED
==== Contents of test case:
makeFile {
puts hello
break
} BREAKtest
set res [list [catch {exec [info nameofexecutable]
BREAKtest} msg] $msg]
removeFile BREAKtest
set res
---- Result was:
1 {couldn't read file "BREAKtest": no such file or
directory}
---- Result should have been (exact matching):
1 {hello
invoked "break" outside of a loop
while executing
"break"
(file "BREAKtest" line 3)}
==== basic-46.2 FAILED
==== basic-46.3 Tcl_AllowExceptions: exception return
not allowed FAILED
==== Contents of test case:
makeFile {
interp alias {} patch {} info patchlevel
patch
break
} BREAKtest
set res [list [catch {exec [info nameofexecutable]
BREAKtest} msg] $msg]
removeFile BREAKtest
set res
---- Result was:
1 {couldn't read file "BREAKtest": no such file or
directory}
---- Result should have been (exact matching):
1 {invoked "break" outside of a loop
while executing
"break"
(file "BREAKtest" line 4)}
==== basic-46.3 FAILED
==== basic-46.4 Tcl_AllowExceptions: exception return
not allowed FAILED
==== Contents of test case:
makeFile {
foo [set a 1] [break]
} BREAKtest
set res [list [catch {exec [info nameofexecutable]
BREAKtest} msg] $msg]
removeFile BREAKtest
set res
---- Result was:
1 {couldn't read file "BREAKtest": no such file or
directory}
---- Result should have been (exact matching):
1 {invoked "break" outside of a loop
while executing
"break"
invoked from within
"foo [set a 1] [break]"
(file "BREAKtest" line 2)}
==== basic-46.4 FAILED
==== basic-46.5 Tcl_AllowExceptions: exception return
not allowed FAILED
==== Contents of test case:
makeFile {
return -code return
} BREAKtest
set res [list [catch {exec [info nameofexecutable]
BREAKtest} msg] $msg]
removeFile BREAKtest
set res
---- Result was:
1 {couldn't read file "BREAKtest": no such file or
directory}
---- Result should have been (exact matching):
1 {command returned bad code: 2
while executing
"return -code return"
(file "BREAKtest" line 2)}
==== basic-46.5 FAILED
msofer Closed ticket [575817ffff].
[History diff]2002-07-04 23:52:43
Log in (anonymous is fine) to add a comment.