Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 13c9623a39e3321d24c8922c755a55dd142223b4
Ticket: 575817ffffffffffffffffffffffffffffffffff
basic.test needs write access to .
User & Date: dgp on 2002-07-01 04:12:55
Changes

  1. assignee changed to: "msofer"
  2. cmimetype changed to: "text/plain"
  3. comment changed 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
    
    
  4. foundin changed to: "obsolete: 8.4a5"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "dgp"
  9. subsystem changed to: "45. Parsing and Eval"
  10. title changed to: "basic.test needs write access to ."
  11. type changed to: "Bug"