Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: d705c0033adaf6c17b7f0004a103f6ce1aec5a6f
Ticket: 612804ffffffffffffffffffffffffffffffffff
space lost from -output option of test
User & Date: pifpafpuf on 2002-09-22 12:18:15
Changes

  1. assignee changed to: "dgp"
  2. cmimetype changed to: "text/plain"
  3. 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.
    }
        }
    
    
    
  4. foundin changed to: "obsolete: 8.4.0"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "pifpafpuf"
  9. subsystem changed to: "34. tcltest Package"
  10. title changed to: "space lost from -output option of test"
  11. type changed to: "Bug"