Skip to content
Tcl Source Code View Ticket
Login

View Ticket

-output doesn't work

Closed / Fixed706359ffffffffffffffffffffffffffffffffffCreated 24 years agoUpdated 23 years ago
Descriptionplain2003-03-19 16:25:04
The following test fails:

package require tcltest
proc doit {} {puts "foo"}
namespace eval test {
tcltest::test tcltest-puts-1.0 {-output doesn't work} -
body doit -output "foo\n"
}

This follows the instructions which recommend to put 
all tests into a namespace. If the namespace is left 
out, it works.
dgpplain2003-03-19 23:30:36
Logged In: YES 
user_id=80530

proc doit should also be in the test namespace.
wangnickplain2003-03-24 16:05:36
Logged In: YES 
user_id=202812

But proc doit is the procedure I'd like to test!

In my real environment I have a package that produces 
some output via puts, and it's this output I'd like to test 
against.
dgp Ticket [706359ffff]: 1 change [History diff]2003-04-15 05:28:36
dgpplain2003-07-19 04:02:04
Logged In: YES 
user_id=80530


Fixed for tcltest 2.2.4 (distributed with Tcl 8.4.4)
Log in (anonymous is fine) to add a comment.