Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: abe1cf68ac877737869ff9f51ec42cf082f58cfe
Ticket: 541637ffffffffffffffffffffffffffffffffff
{puts stdout $msg} fails inside test
User & Date: kenstir on 2002-04-09 17:25:41
Changes

  1. assignee changed to: "melissachawla"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    If you run the attached foo.test, you'll get an error
    (against CVS HEAD as of today).  There are three things
    wrong and I could only figure out how to fix two:
    
    1) [outputChannel] doesn't work from within
    tcltest::replace namespace.  Fixed by specifying
    complete namespace.
    
    2) We don't want to append the output to outData twice.
     Fixed by calling return after figuring out we could
    handle the puts.
    
    3) The test now runs but still doesn't pass.  Somehow
    the [concat] inside tcltest::test is stripping the
    newline from the -output option.  I don't understand
    why the concat is done so I'm not sure the best way to
    fix it.
    
    Hopefully this 2/3 patch is useful.
    
    Regards, a tcltest fan,
    Ken
    
    
  4. foundin changed to: "None"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "kenstir"
  9. subsystem changed to: "34. tcltest Package"
  10. title changed to: "{puts stdout $msg} fails inside test"
  11. type changed to: "Patch"