Skip to content
Tcl Source Code History Of Ticket 1017151
Login

History Of Ticket 1017151

Artifacts Associated With Ticket 1017151

  1. Ticket change [4968c512d1] (rid 100048) by robert_seeger on 2004-08-26 20:02:10:

    1. assignee initialized to: "dgp"
    2. cmimetype initialized to: "text/plain"
    3. 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
      
      
    4. foundin initialized to: "None"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "robert_seeger"
    9. subsystem initialized to: "34. tcltest Package"
    10. title initialized to: "Correct wrong/misleading errorInfo reporting"
    11. type initialized to: "RFE"
  2. Add attachment "tcltestmod.tar.gz" [abf7b20fb9] (rid 101208) by robert_seeger on 2004-08-29 10:10:57.

  3. Ticket change [d9f8b76d12] (rid 107701) by robert_seeger on 2004-08-29 10:10:57:

    1. icomment:
      
      
      File Added - 99581: tcltestmod.tar.gz
      
      
      
    2. login: "robert_seeger"
    3. mimetype: "text/plain"
    4. username: "robert_seeger"
  4. Ticket change [e81bc9f63c] (rid 104592) by robert_seeger on 2004-08-29 12:49:50:

    1. 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
      }
      
      
    2. login: "robert_seeger"
    3. mimetype: "text/plain"
    4. username: "robert_seeger"
  5. Ticket change [74fb0f440a] (rid 105314) by dgp on 2004-10-30 09:48:33:

    1. priority changed to: "9 Immediate"
  6. Add attachment "1017151.patch" [c0ebf21ee1] (rid 102501) by dgp on 2004-11-02 06:15:43.

  7. Ticket change [dc54144cba] (rid 114459) by dgp on 2004-11-02 06:15:43:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      here's an adapted patch
      against the HEAD.  What
      do you think?
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  8. Ticket change [2e6c411c74] (rid 119220) by dgp on 2004-11-02 06:15:44:

    1. icomment:
      
      
      File Added - 107283: 1017151.patch
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  9. Ticket change [21324d7899] (rid 130542) by dgp on 2004-11-03 02:03:29:

    1. closedate changed to: "2004-11-02T19:03:29"
    2. closer changed to: "dgp"
    3. icomment:
      Logged In: YES 
      user_id=80530
      
      Fixed in tcltest 2.2.7
      
      
    4. login: "dgp"
    5. mimetype: "text/plain"
    6. resolution changed to: "Accepted"
    7. status changed to: "Closed"
    8. username: "dgp"
  10. Ticket change [e9344163e4] (rid 104775) by robert_seeger on 2004-11-08 21:51:44:

    1. icomment:
      Logged In: YES 
      user_id=1081558
      
      I just tested it out, and it looks great. Thanks very much
      
      
    2. login: "robert_seeger"
    3. mimetype: "text/plain"
    4. username: "robert_seeger"