Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 60ff03fd3df18c6f8c8e19244269b8ef85a691ddc67ad4c6b885402a58fa09c3
Ticket: 5137b4387019d0e118d958fb2b51139219ba9978
clock.test failures with -singleproc 1 on Windows
User & Date: sebres on 2025-07-31 10:36:06
Changes

  1. icomment:
    No idea, why I'm abrupt responsible for that errors (since this tests exist almost since begin of clock, and they are older than 20 years and I saw such errors already with 8.5), but OK...
    
    The tests have only conditionally the issue with -singleproc 1, and it goes to 
    the "timing" problem - the tests using "system" locale, for this TCL would need registry module under windows, but this cannot be used unless really installed.
    The root of the issue - tcltest also uses the clock ensemble (to output "Tests began at" on start), and the registry would not be found there, so a later usage in the same interpreter (if registry package gets provided by -load parameters) may be too late, so may cause that the registry would not be tried to load anymore, so after all the retrieved locale may be different.
    
    I made at some point (see [0c05a83862b9967c]) the registry package loadable in development environment, even uninstalled (pkgIndex tried to load it relative build folder). But it was ultimately reverted.
    
    The next fix I made in this direction was the loading of -load in tcltest to correct time (cannot find the commit now).
    
    Anyway I cannot reproduce it in MinGW (have no VS to hand right now), with both ways:
    <code><pre style="margin-left:10pt">
    $ make -j8 test TESTFLAGS="-file 'clock*.test' -singleproc 1"
    TCL_LIBRARY="/d/prj/tcl9.0/library"; export TCL_LIBRARY; \
     ./tclsh90.exe "../../tests/all.tcl" -file 'clock*.test' -singleproc 1 \
    -load "package ifneeded tcl::test 9.0.3 [list load tcltest90.dll Tcltest]; lappend ::auto_path {d:/prj/tcl9.0/tests}; package ifneeded dde 1.4.5 [list load tcl9dde14.dll]; package ifneeded registry 1.3.7 [list load tcl9registry13.dll]"
    Tests running in interp:  d:/prj/tcl9.0/win/Release_MGW64/tclsh90.exe
    Tests located in:  D:/prj/tcl9.0/tests
    Tests running in:  D:/prj/tcl9.0/win/Release_MGW64
    Temporary files stored in D:/prj/tcl9.0/win/Release_MGW64
    Test files sourced into current interpreter
    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:23:52 CEST 2025
    clock-ivm.test
      Validity default mode: off
    clock.test
      Validity default mode: off
    
    Tests ended at Thu Jul 31 12:23:58 CEST 2025
    all.tcl:        Total   17472   Passed  17472   Skipped 0       Failed  0
    Sourced 2 Test Files.
    
    $ make -j8 tcltest && ./tcltest.sh -file 'clock*.test' -singleproc 1
    make: Nothing to be done for `tcltest'.
    Tests running in interp:  d:/prj/tcl9.0/win/Release_MGW64/tcltest.exe
    Tests located in:  D:/prj/tcl9.0/tests
    Tests running in:  T:/Temp
    Temporary files stored in T:/Temp
    Test files sourced into current interpreter
    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:24:34 CEST 2025
    clock-ivm.test
      Validity default mode: off
    clock.test
      Validity default mode: off
    
    Tests ended at Thu Jul 31 12:24:40 CEST 2025
    all.tcl:        Total   17472   Passed  17472   Skipped 0       Failed  0
    Sourced 2 Test Files.
    </pre></code>
    The same is valid for clock.test only (single file).
    
    But I'd try to find the roots if I'd get VS to hand.
    
  2. login: "sebres"
  3. mimetype: "text/x-fossil-wiki"