Overview
| Artifact ID: | d705c0033adaf6c17b7f0004a103f6ce1aec5a6f |
|---|---|
| Ticket: | 612804ffffffffffffffffffffffffffffffffff
space lost from -output option of test |
| User & Date: | pifpafpuf on 2002-09-22 12:18:15 |
Changes
- assignee changed to: "dgp"
- cmimetype changed to: "text/plain"
- comment changed 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 changed to: "obsolete: 8.4.0"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "pifpafpuf"
- subsystem changed to: "34. tcltest Package"
- title changed to: "space lost from -output option of test"
- type changed to: "Bug"