Artifacts Associated With Ticket 575817ffffffffffffffffffffffffffffffffff
Ticket change [13c9623a39] (rid 124278) by dgp on 2002-07-01 04:12:55:
- assignee initialized to: "msofer"
- cmimetype initialized to: "text/plain"
- comment initialized to:
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 - foundin initialized to: "obsolete: 8.4a5"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "dgp"
- subsystem initialized to: "45. Parsing and Eval"
- title initialized to: "basic.test needs write access to ."
- type initialized to: "Bug"
Ticket change [7896ffc8d0] (rid 89985) by msofer on 2002-07-04 23:52:43:
- closedate changed to: "2002-07-04T16:52:43"
- closer changed to: "msofer"
- resolution changed to: "Fixed"
- status changed to: "Closed"