Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 3d56d65cfd5945f7ece4cdd7f08c767fa7b444a7
Ticket: 549607ffffffffffffffffffffffffffffffffff
basic.test fails with space in dirname
User & Date: kennykb on 2002-04-27 22:15:45
Changes

  1. assignee changed to: "msofer"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    Test basic-46.1 fails if [info nameofexecutable] contains
    a space character.
    
    Attached patch appears to fix it.
    
    Fault is in the test suite and not the code under test.
    
    ==== basic-46.1 Tcl_AllowExceptions: exception return
    not allowed FAILED
    ==== Contents of test case:
    
        catch {close $f}
        set res [catch {
    set f [open |[info nameofexecutable] w+]
    fconfigure $f -buffering line
    puts $f {fconfigure stdout -buffering line}
    puts $f continue
    puts $f {puts $errorInfo}
    puts $f {puts DONE}
    set newMsg {}
    set msg {}
    while {$newMsg != "DONE"} {
        set newMsg [gets $f]
        append msg "${newMsg}\n"
    }
    close $f
        }]
        list $res $msg   
    
    ---- Result was:
    1 {global unknown}
    ---- Result should have been (exact matching):
    1 {invoked "continue" outside of a loop
        while executing
    "continue
    "
    DONE
    }
    ==== basic-46.1 FAILED
    
    
  4. foundin changed to: "None"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "kennykb"
  9. subsystem changed to: "45. Parsing and Eval"
  10. title changed to: "basic.test fails with space in dirname"
  11. type changed to: "Bug"