Artifacts Associated With Ticket 1017151
Ticket change [4968c512d1] (rid 100048) by robert_seeger on 2004-08-26 20:02:10:
- assignee initialized to: "dgp"
- cmimetype initialized to: "text/plain"
- comment initialized 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 - foundin initialized to: "None"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "robert_seeger"
- subsystem initialized to: "34. tcltest Package"
- title initialized to: "Correct wrong/misleading errorInfo reporting"
- type initialized to: "RFE"
Add attachment "tcltestmod.tar.gz" [abf7b20fb9] (rid 101208) by robert_seeger on 2004-08-29 10:10:57.
Ticket change [d9f8b76d12] (rid 107701) by robert_seeger on 2004-08-29 10:10:57:
- icomment:
File Added - 99581: tcltestmod.tar.gz
- login: "robert_seeger"
- mimetype: "text/plain"
- username: "robert_seeger"
- icomment:
Ticket change [e81bc9f63c] (rid 104592) by robert_seeger on 2004-08-29 12:49:50:
- icomment:
Logged In: YES user_id=1081558 The file I attached breaks the test 'tcltest-2.8', due to the change in output on an error. The following rewrite of the test (which only changes the regexp) makes all tests in that file again pass. test tcltest-2.8 {tcltest -verbose 'error'} { -constraints {unixOrPc} -body { set result [slave msg test.tcl -verbose error] list $result $msg } -result {errorInfo\(body\): foo.*errorCode\(body\): 9} -match regexp } - login: "robert_seeger"
- mimetype: "text/plain"
- username: "robert_seeger"
- icomment:
Ticket change [74fb0f440a] (rid 105314) by dgp on 2004-10-30 09:48:33:
- priority changed to: "9 Immediate"
Add attachment "1017151.patch" [c0ebf21ee1] (rid 102501) by dgp on 2004-11-02 06:15:43.
Ticket change [dc54144cba] (rid 114459) by dgp on 2004-11-02 06:15:43:
- icomment:
Logged In: YES user_id=80530 here's an adapted patch against the HEAD. What do you think?
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [2e6c411c74] (rid 119220) by dgp on 2004-11-02 06:15:44:
- icomment:
File Added - 107283: 1017151.patch
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [21324d7899] (rid 130542) by dgp on 2004-11-03 02:03:29:
- closedate changed to: "2004-11-02T19:03:29"
- closer changed to: "dgp"
- icomment:
Logged In: YES user_id=80530 Fixed in tcltest 2.2.7
- login: "dgp"
- mimetype: "text/plain"
- resolution changed to: "Accepted"
- status changed to: "Closed"
- username: "dgp"
Ticket change [e9344163e4] (rid 104775) by robert_seeger on 2004-11-08 21:51:44:
- icomment:
Logged In: YES user_id=1081558 I just tested it out, and it looks great. Thanks very much
- login: "robert_seeger"
- mimetype: "text/plain"
- username: "robert_seeger"
- icomment: