Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 4968c512d1ff4875371e8596ad7dfd46befaddd3
Ticket: 1017151fffffffffffffffffffffffffffffffff
Correct wrong/misleading errorInfo reporting
User & Date: robert_seeger on 2004-08-26 20:02:10
Changes

  1. assignee changed to: "dgp"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    Currently, the display of error information during a
    test run can be misleading. In particular, the
    errorInfo displayed for a test that was supposed to
    have a returnCode of error but did not is that of the
    last error. Also, if the body and cleanup sections of a
    test throw errors, only the error from the cleanup
    section is displayed. It would be helpful if both
    pieces of information were reported.
    
    Some sample code that shows the problem:
    
    test fake-1.1 {
        A fake test to set errorInfo
    } -body {
        catch { error "this is an error" }
    } -result 1
    
    test fakeError-1.1 {
        Show an error condition when there isn't one
    } -body {
        set x 1
    } -returnCodes error -result {1}
    
    test lostError-1.1 {
        Lose the body error information
    } -body {
        error "we never see this error"
    } -cleanup {
        error "we only see this error"
    } -result 1
    
    
  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: "robert_seeger"
  9. subsystem changed to: "34. tcltest Package"
  10. title changed to: "Correct wrong/misleading errorInfo reporting"
  11. type changed to: "RFE"