Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 92b8b7b2fc658a75bcda20201393927ce3d54ccb
Ticket: 3605120fffffffffffffffffffffffffffffffff
test chan-io-28.7 slightly buggy (doesn't run standalone)
User & Date: pointsman on 2013-02-17 22:36:27
Changes

  1. assignee changed to: "andreas_kupries"
  2. cmimetype changed to: "text/plain"
  3. comment changed 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 changed to: "current: 8.6.0"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "pointsman"
  10. subsystem changed to: "24. Channel Commands"
  11. title changed to:
    test chan-io-28.7 slightly buggy (doesn't run standalone)
    
  12. type changed to: "Bug"