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

History Of Ticket 549614ffffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 549614ffffffffffffffffffffffffffffffffff

  1. Ticket change [2bd3f7cc83] (rid 118812) by kennykb on 2002-04-27 22:34:50:

    1. assignee initialized to: "dgp"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      If [info nameof] contains a space character, several test
      cases in main.test fail.  The fault is in the test suite
      and not the code under test.  The attached patch fixes it.
      
      ==== Tcl_Main-1.1 Tcl_Main: startup script - normal FAILED
      ==== Contents of test case:
      
      read $f
          
      ---- Result was:
      can't read "f": no such variable
      ---- Result should have been (exact matching):
      script {} 0
      
      ---- Test generated error; Return code was: 1
      ---- Return code should have been one of: 0 2
      ---- Test cleanup failed:
      can't read "f": no such variable
      ==== Tcl_Main-1.1 FAILED
      
      
      ==== Tcl_Main-1.2 Tcl_Main: startup script - can't
      begin with '-' FAILED
      ==== Contents of test case:
      
      puts $f {puts [list $argv0 $argv $tcl_interactive]; exit}
      flush $f
      read $f
          
      ---- Result was:
      can't read "f": no such variable
      ---- Result should have been (exact matching):
      {C:/Documents and Settings/kevin/My
      Documents/SourceForge/tcl/win/Release/tcltest.exe}
      -script 0
      
      ---- Test generated error; Return code was: 1
      ---- Return code should have been one of: 0 2
      ---- Test cleanup failed:
      can't read "f": no such variable
      ==== Tcl_Main-1.2 FAILED
      
      
      ==== Tcl_Main-1.3 Tcl_Main: encoding of arguments: done
      by system encoding
      Note the shortcoming explained in Tcl Patch 491789 FAILED
      ==== Contents of test case:
      
      read $f
          
      ---- Result was:
      can't read "f": no such variable
      ---- Result should have been (exact matching):
      script À 0
      
      ---- Test generated error; Return code was: 1
      ---- Return code should have been one of: 0 2
      ---- Test cleanup failed:
      can't read "f": no such variable
      ==== Tcl_Main-1.3 FAILED
      
      
      ==== Tcl_Main-1.4 Tcl_Main: encoding of arguments: done
      by system encoding
      Note the shortcoming explained in Tcl Patch 491789 FAILED
      ==== Contents of test case:
      
      read $f
          
      ---- Result was:
      can't read "f": no such variable
      ---- Result should have been (exact matching):
      script ? 0
      
      ---- Test generated error; Return code was: 1
      ---- Return code should have been one of: 0 2
      ---- Test cleanup failed:
      can't read "f": no such variable
      ==== Tcl_Main-1.4 FAILED
      
      
      ==== Tcl_Main-1.5 Tcl_Main: encoding of script name:
      system encoding loss
      Note the shortcoming explained in Tcl Patch 491789 FAILED
      ==== Contents of test case:
      
      read $f
          
      ---- Result was:
      can't read "f": no such variable
      ---- Result should have been (exact matching):
      À {} 0
      
      ---- Test generated error; Return code was: 1
      ---- Return code should have been one of: 0 2
      ---- Test cleanup failed:
      can't read "f": no such variable
      ==== Tcl_Main-1.5 FAILED
      
      
      ==== Tcl_Main-1.6 Tcl_Main: encoding of script name:
      system encoding loss
      Note the shortcoming explained in Tcl Patch 491789 FAILED
      ==== Contents of test case:
      
      read $f
          
      ---- Result was:
      can't read "f": no such variable
      ---- Result should have been (exact matching):
      ? {} 0
      
      ---- Test generated error; Return code was: 1
      ---- Return code should have been one of: 0 2
      ---- Test cleanup failed:
      can't read "f": no such variable
      ==== Tcl_Main-1.6 FAILED
      
      
      ==== Tcl_Main-5.2 Tcl_Main able to handle non-blocking
      stdin FAILED
      ==== Contents of test case:
      
      type $f {
          fconfigure stdin -blocking 0
          puts SUCCESS
      }
      list [catch {gets $f} line] $line
          
      ---- Result was:
      1 {can not find channel named "filea21cc8"}
      ---- Result should have been (exact matching):
      0 SUCCESS
      ---- Test cleanup failed:
      can not find channel named "filea21cc8"
      ==== Tcl_Main-5.2 FAILED
      
      
      ==== Tcl_Main-5.3 Tcl_Main handles stdin EOF in
      mid-command FAILED
      ==== Contents of test case:
      
      type $f "fconfigure stdin -eofchar \\032
          if 1 \{\n\032"
      variable wait
      fileevent $f readable  [list set [namespace which
      -variable wait] "child exit"]
      set id [after 2000 [list set [namespace which -variable
      wait] timeout]]
      vwait [namespace which -variable wait]
      after cancel $id
      set wait
          
      ---- Result was:
      can not find channel named "filea21cc8"
      ---- Result should have been (exact matching):
      child exit
      ---- Test generated error; Return code was: 1
      ---- Return code should have been one of: 0 2
      ---- Test cleanup failed:
      can't read "wait": no such variable
      ==== Tcl_Main-5.3 FAILED
      
      
      ==== Tcl_Main-5.4 Tcl_Main handles stdin EOF in
      mid-command FAILED
      ==== Contents of test case:
      
      variable wait
      fileevent $f readable  [list set [namespace which
      -variable wait] "child exit"]
      set id [after 2000 [list set [namespace which -variable
      wait] timeout]]
      vwait [namespace which -variable wait]
      after cancel $id
      set wait
          
      ---- Result was:
      can not find channel named "filea21cc8"
      ---- Result should have been (exact matching):
      child exit
      ---- Test generated error; Return code was: 1
      ---- Return code should have been one of: 0 2
      ---- Test cleanup failed:
      can't read "wait": no such variable
      ==== Tcl_Main-5.4 FAILED
      
      
      ==== Tcl_Main-5.10 Tcl_Main: exit main loop in
      mid-interactive command FAILED
      ==== Contents of test case:
      
      type $f "testsetmainloop
               after 2000 testexitmainloop
               puts \{1 2"
      after 4000
      type $f "3 4\}"
      set code1 [catch {gets $f} line1]
      set code2 [catch {gets $f} line2]
      set code3 [catch {gets $f} line3]
      list $code1 $line1 $code2 $line2 $code3 $line3
          
      ---- Result was:
      1 {can not find channel named "filea08730"} 1 {can not
      find channel named "filea08730"} 1 {can not find
      channel named "filea08730"}
      ---- Result should have been (exact matching):
      0 {Exit MainLoop} 0 {1 2} 0 {3 4}
      ---- Test cleanup failed:
      can not find channel named "filea08730"
      ==== Tcl_Main-5.10 FAILED
      
      
    4. foundin initialized to: "None"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "kennykb"
    9. subsystem initialized to: "50. Embedding Support"
    10. title initialized to: "main.test fails with space in dir"
    11. type initialized to: "Bug"
  2. Ticket change [cc3cae6334] (rid 95657) by kennykb on 2002-04-28 05:34:51:

    1. icomment:
      
      
      File Added - 22064: main.test.diff
      
      
      
    2. login: "kennykb"
    3. mimetype: "text/plain"
    4. username: "kennykb"
  3. Add attachment "main.test.diff" [33784020c4] (rid 106599) by kennykb on 2002-04-28 05:34:51.

  4. Ticket change [33aaaef6de] (rid 106634) by dgp on 2002-05-08 10:20:22:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      This patch works, but I prefer a style that when [list]
      is required for proper quoting, you go ahead and
      quote all elements within a single [list].  So:
      
      open "|[list [interpreter] arg1 arg2]" w+
      
      rather than
      
      open "|[list [interpreter]] arg1 arg2" w+
      
      even though the literals "arg1" and "arg2" do not need
      the quoting.
      
      I'm working up a jumbo patch to deal with space in path
      problems in the test suite.  I'll include my alternative
      in that.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  5. Ticket change [e7c5657f02] (rid 104523) by dgp on 2002-05-08 12:57:34:

    1. icomment:
      
      
      File Added - 22691: spacetest.patch
      
      Logged In: YES 
      user_id=80530
      
      Here's a patch with the alternate fixes to main.test
      as well as fixes for similar problems in load.test
      and in fileName.test.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  6. Add attachment "spacetest.patch" [f22843c7a1] (rid 109492) by dgp on 2002-05-08 12:57:34.

  7. Ticket change [c64934fb3c] (rid 121740) by dgp on 2002-05-08 13:00:59:

    1. closedate changed to: "2002-05-08T06:00:59"
    2. closer changed to: "dgp"
    3. foundin changed to: "obsolete: 8.4a5"
    4. icomment:
      Logged In: YES 
      user_id=80530
      
      fixed in the HEAD (8.4a5)
      
      
    5. login: "dgp"
    6. mimetype: "text/plain"
    7. resolution changed to: "Fixed"
    8. status changed to: "Closed"
    9. username: "dgp"