Artifacts Associated With Ticket 612804ffffffffff
Ticket change [d705c0033a] (rid 123905) by pifpafpuf on 2002-09-22 12:18:15:
- assignee initialized to: "dgp"
- cmimetype initialized to: "text/plain"
- comment initialized to:
I am using -output "\n<HTML>xxx</HTML>\n" as an option for [test], but internally the newlines are trimmed and the actually generated output is compared with "<HTML>xxx</HTML>". The problem seems to arise around line 1802 of tcltest.tcl: # The old test format can't have a 3rd argument (constraints or # script) that starts with '-'. if {[string match -* [lindex $args 0]] || ([llength $args] <= 1)} { if {[llength $args] == 1} { set list [SubstArguments [lindex $args 0]] foreach {element value} $list { set testAttributes($element) $value } foreach item {constraints match setup body cleanup \ result returnCodes output errorOutput} { if {[info exists testAttributes(-$item)]} { set testAttributes(-$item) [uplevel 1 \ ::concat $testAttributes(-$item)] ############## The whitespace is lost here. } } - foundin initialized to: "obsolete: 8.4.0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "pifpafpuf"
- subsystem initialized to: "34. tcltest Package"
- title initialized to: "space lost from -output option of test"
- type initialized to: "Bug"
Ticket change [85c4eab3f1] (rid 131374) by dgp on 2002-09-23 01:26:22:
- closedate changed to: "2002-09-22T18:26:22"
- closer changed to: "dgp"
- icomment:
Logged In: YES user_id=80530 Can you provide a complete [test] command that demonstrates the problem? It appears you may be using the 3 argument form of [test]. Don't do that. That form lacks documentation of its substitution rules, so I can't fix "bugs" in it, because it's impossible to distinguish a bug from intended (if bizarre) behavior. If -output does not work in the normal form of [test], please followup.
- login: "dgp"
- mimetype: "text/plain"
- resolution changed to: "Wont Fix"
- status changed to: "Pending"
- username: "dgp"
Ticket change [8e407fe0bf] (rid 120078) by pifpafpuf on 2002-09-24 02:26:39:
- icomment:
Logged In: YES user_id=367359 I did not know that the 3 arg version is frowned upon. I agree on the "bizarre behaviour". It is in fact the reason why I did not dare to do create a patch. Harald.
- login: "pifpafpuf"
- mimetype: "text/plain"
- status changed to: "Open"
- username: "pifpafpuf"
- icomment:
Ticket change [4260876343] (rid 116365) by dgp on 2002-09-24 02:29:57:
- icomment:
Logged In: YES user_id=80530 You mean the comments in the documentation were not harsh enough? :-)
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [5db335e720] (rid 115515) by dgp on 2002-09-24 02:30:28:
- closedate changed to: "2002-09-23T19:30:28"
- closer changed to: "dgp"
- status changed to: "Closed"