Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: c9ae1e7314fe79b35f63d05109d1ba8308d9e11a
Ticket: 611922ffffffffffffffffffffffffffffffffff
Return code incorrectly reported
User & Date: taback on 2002-09-20 00:49:49
Changes

  1. assignee changed to: "dgp"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    Tcl Version: 8.4
    OS: Redhat Linux 7.3 (Also Windows 2000)
    
    The return code gets incorrectly reported when a test calls error.
    
    Given the following test
    
    test a1 {Verify error return codes get correctly reported} {
        error Hello
    } {Hello}
    
    The output is
    
    ==== a1 Verify error return codes get correctly reported FAILED
    ==== Contents of test case:
    
        error Hello
    
    ---- Test completed normally; Return code was: 0
    ---- Return code should have been one of: 0 2
    ==== a1 FAILED
    
    Note that the return code is incorrectly reported as 0.
    In Tcl 8.3.4, the line correctly reads
    
    ---- Test generated error; Return code was: 1
    
    
  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: "taback"
  9. subsystem changed to: "34. tcltest Package"
  10. title changed to: "Return code incorrectly reported"
  11. type changed to: "Bug"