Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: c44b000651d5f26af199b9d996ee50700b54edcc8b100741302cd7c7e9042666
Ticket: 5137b4387019d0e118d958fb2b51139219ba9978
clock.test failures with -singleproc 1 on Windows
User & Date: apnadkarni on 2025-07-31 06:40:17
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-markdown"
  4. comment changed to:
    Failures disappear with -Od or -singleproc 0. Unix does not exhibit failures but MinGW build also show failures. Note only clock.test is run so not a result of other test files.
    
    ```
    nmake /f makefile.vc TESTFLAGS="-f clock.test -singleproc 1" test
    
    Running tests that match:  *
    Skipping test files that match:  l.*.test
    Only running test files that match:  clock.test
    Tests began at Thu Jul 31 12:04:51 +0530 2025
    clock.test
      Validity default mode: on
    
    
    ==== clock-31.1.vm:1 system locale FAILED
    ==== Contents of test case:
    
            clock format 0 -timezone :UTC -locale system -format %x
    
    ---- Result was:
    01/01/1970
    ---- Result should have been (exact matching):
    01-Jan-1970
    ==== clock-31.1.vm:1 FAILED
    
    
    
    ==== clock-31.2.vm:1 system locale FAILED
    ==== Contents of test case:
    
            clock format 0 -timezone :UTC -locale system -format %Ex
    
    ---- Result was:
    01/01/1970
    ---- Result should have been (exact matching):
    the 01' day of January 1970
    ==== clock-31.2.vm:1 FAILED
    
    
    
    ==== clock-31.3.vm:1 system locale FAILED
    ==== Contents of test case:
    
            clock format 0 -timezone :UTC -locale system -format %X
    
    ---- Result was:
    00:00:00
    ---- Result should have been (exact matching):
    12:00:00 AM
    ==== clock-31.3.vm:1 FAILED
    
    
    
    ==== clock-31.4.vm:1 system locale FAILED
    ==== Contents of test case:
    
            clock format 0 -locale system -format %x
    
    ---- Result was:
    01/01/1970
    ---- Result should have been (exact matching):
    31-Dec-1969
    ==== clock-31.4.vm:1 FAILED
    
    
    
    ==== clock-31.5.vm:1 system locale FAILED
    ==== Contents of test case:
    
            clock format 0 -locale system -format %Ex
    
    ---- Result was:
    01/01/1970
    ---- Result should have been (exact matching):
    the 31' day of December 1969
    ==== clock-31.5.vm:1 FAILED
    
    
    
    ==== clock-31.6.vm:1 system locale FAILED
    ==== Contents of test case:
    
            clock format 0 -locale system -format "%X %Z"
    
    ---- Result was:
    05:30:00 +0530
    ---- Result should have been (exact matching):
     7:00:00 PM EST
    ==== clock-31.6.vm:1 FAILED
    
    
    
    ==== clock-38.2.vm:1 make sure TZ is not cached after unset FAILED
    ==== Contents of test case:
    
            set t1 [clock format 0]
            # a time zone that is unlikely to anywhere
            set env(TZ) "+04:20"
            set t2 [clock format 0]
            unset env(TZ)
            set t3 [clock format 0]
            expr {$t1 eq $t3 && $t1 ne $t2}
    
    ---- Result was:
    0
    ---- Result should have been (exact matching):
    1
    ==== clock-38.2.vm:1 FAILED
    
    
    
    ==== clock-49.2.vm:1 regression test - missing time zone file (Bug 1237907) FAILED
    ==== Contents of test case:
    
            list [::tcl::clock::GuessWindowsTimeZone]  [clock format 0 -locale system -format "%H:%M:%S %Z"]  [clock format -86400 -format "%Y"]
    
    ---- Test generated error; Return code was: 1
    ---- Return code should have been one of: 0 2
    ---- errorInfo: localtime failed (clock value may be too large/small to represent)
        while executing
    "clock format -86400 -format "%Y""
        ("uplevel" body line 2)
        invoked from within
    "uplevel 1 $script"
    ---- errorCode: CLOCK localtimeFailed
    ==== clock-49.2.vm:1 FAILED
    
    
    Tests ended at Thu Jul 31 12:04:55 +0530 2025
    all.tcl:        Total   8724    Passed  8716    Skipped 0       Failed  8
    Sourced 1 Test Files.
    Files with failing tests: clock.test
    ```
    
  5. is_private changed to: "0"
  6. login: "apnadkarni"
  7. priority changed to: "5 Medium"
  8. private_contact changed to: "9546e9877f1a8899e25a89082561ee694e7fb402"
  9. resolution changed to: "None"
  10. severity changed to: "Minor"
  11. status changed to: "Open"
  12. submitter changed to: "apnadkarni"
  13. subsystem changed to: "- New Builtin Commands"
  14. title changed to: "clock.test failures with -singleproc 1 on Windows"
  15. type changed to: "Bug"