Skip to content
Tcl Source Code History Of Ticket 1a3fa1232e306a44
Login

History Of Ticket 1a3fa1232e306a44

Artifacts Associated With Ticket 1a3fa1232e306a44

  1. Ticket change [807f9d2e17] (rid 170576) by emiliano on 2019-03-30 18:16:22:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/plain"
    4. comment initialized to:
      testing trunk on a slow machine shows a failing test cmdMZ-6.5
      
      cmdMZ.test
      
      
      ==== cmdMZ-6.5 Tcl_TimeRateObjCmd: result format and one iteration FAILED
      ==== Contents of test case:
      
          regexp {^\d+.\d+ \ws/# 1 # \d+ #/sec \d+.\d+ nett-ms$} [timerate {} 0]
      
      ---- Result was:
      0
      ---- Result should have been (exact matching):
      1
      ==== cmdMZ-6.5 FAILED
      
      code shows that the result of [timerate] is a list and the fourth element can be either an integer or a float with 1, 2 or 3 decimals (file generic/tclCmdMZ.c, lines 4424-4438) but only the integer path is tested. 
      
      The obvious solution is to test for those possibilities as well.
      
      No other code paths were tested/reviewed.
      
    5. foundin initialized to: "trunk"
    6. is_private initialized to: "0"
    7. login: "emiliano"
    8. priority initialized to: "5 Medium"
    9. private_contact initialized to: "885ae311f5fce05c2a8d9c31d2d2a1b5638ca9df"
    10. resolution initialized to: "None"
    11. severity initialized to: "Minor"
    12. status initialized to: "Open"
    13. submitter initialized to: "emiliano"
    14. subsystem initialized to: "- New Builtin Commands"
    15. title initialized to: "test cmdMZ-6.5 not testing all code paths"
    16. type initialized to: "Bug"
  2. Add attachment "timerate.diff" [7db543281b] (rid 170577) by emiliano on 2019-03-30 18:17:45.

  3. Ticket change [b6d3f2533b] (rid 170641) by sebres on 2019-04-01 13:55:35:

    1. closedate changed to: "2458575.08027442"
    2. closer changed to: "sebres"
    3. icomment: "Fixed in [c925d4759d96961f]. Thx!"
    4. login: "sebres"
    5. mimetype: "text/x-fossil-wiki"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"