Skip to content
Tcl Source Code History Of Ticket 3605120fff
Login

History Of Ticket 3605120fff

Artifacts Associated With Ticket 3605120fff

  1. Ticket change [92b8b7b2fc] (rid 120821) by pointsman on 2013-02-17 22:36:27:

    1. assignee initialized to: "andreas_kupries"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      
      The test chan-io-28.7 out of tests/chanio doesn't run standalone. 
      
      A call like
      
      ./tcltest ../tests/all.tcl -file chanio.test -match 'chan-io-28.7'
      
      simply runs forever, the test doesn't terminate.
      
      The reason is simple: The test, called as above, calls vwait on the variable name "" (the empty string), but this variable isn't set by the test. 
      
      More Details: The test body calls
      
          vwait [namespace which -variable done]
      
      Since there isn't a variable "done" neither defined nor created within the test, the [namespace which] call returns the empty string. In the typical case of running the whole test file this isn't noticed, because the test chan-io-28.6 does create (and define)  the variable done. Since all test bodies are evaluated in the same namespace (the global one) the [namespace which -variable done] call in chan-io-28.7 will return the right fqn, if chan-io-28.6 run before.
      
      The fix is obvious: Either replace the 
          vwait [namespace which -variable done]
      with a simple
          vwait done
      or add a
          variable done
      at the end of the -setup code of that test, as chan-io-28.6 does
      
    4. foundin initialized to: "current: 8.6.0"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "pointsman"
    10. subsystem initialized to: "24. Channel Commands"
    11. title initialized to:
      test chan-io-28.7 slightly buggy (doesn't run standalone)
      
    12. type initialized to: "Bug"
  2. Ticket change [e9056ef98c] (rid 104740) by dkf on 2013-02-26 20:43:16:

    1. assignee changed to: "dkf"
    2. closedate changed to: "2013-02-26T13:43:16"
    3. closer changed to: "dkf"
    4. icomment:
      
      
      allow_comments - 1
      
      There was quite a bit of confusion in that test about which namespace the code was operating in. All tidied up.
      
      
    5. login: "dkf"
    6. mimetype: "text/plain"
    7. resolution changed to: "Fixed"
    8. status changed to: "Closed"
    9. username: "dkf"