Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2003-07-19
04:02 • Closed ticket [706359ffff]: -output doesn't work plus 7 other changes artifact: 1be4bba35a user: dgp
2003-04-15
05:28 • Ticket [706359ffff]: 1 change artifact: 1fe4574490 user: dgp
2003-03-24
16:05 • Ticket [706359ffff]: 4 changes artifact: fdd99c1db0 user: wangnick
2003-03-19
23:30 • Ticket [706359ffff]: 4 changes artifact: acec36f133 user: dgp
16:25 • New ticket [706359ffff]. artifact: 7754ae6768 user: wangnick

-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.