Skip to content
Tcl Source Code History Of Ticket 575817ffffffffffffffffffffffffffffffffff
Login

History Of Ticket 575817ffffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 575817ffffffffffffffffffffffffffffffffff

  1. Ticket change [13c9623a39] (rid 124278) by dgp on 2002-07-01 04:12:55:

    1. assignee initialized to: "msofer"
    2. cmimetype initialized to: "text/plain"
    3. 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
      
      
    4. foundin initialized to: "obsolete: 8.4a5"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "dgp"
    9. subsystem initialized to: "45. Parsing and Eval"
    10. title initialized to: "basic.test needs write access to ."
    11. type initialized to: "Bug"
  2. Ticket change [7896ffc8d0] (rid 89985) by msofer on 2002-07-04 23:52:43:

    1. closedate changed to: "2002-07-04T16:52:43"
    2. closer changed to: "msofer"
    3. resolution changed to: "Fixed"
    4. status changed to: "Closed"