Menu

#340 all windows tests using shared library are failing

2.0
open
nobody
None
2025-10-13
2025-10-02
No

using buildtools 2022

we noticed, that after commit from 2025-03-28 all tests under windows using shared lib are failing, with same exit code 0xc0000135

in this commit the way for setting the PATH variable for tests was adapted
https://github.com/zint/zint/blob/4d301ea5604cc8f9f2b56f98b9d20718163bceb6/cmake/zint_add_test.cmake#L22
it seems, that only the last call to path_list_prepend is used, so ${CMAKE_BINARY_DIR}/backend/${CMAKE_BUILD_TYPE} is not in PATH

Example output for test 2of5

C:\mnt\zint\build>ctest -VV -R 2of5 -C Debug
UpdateCTestConfiguration  from :C:/mnt/zint/build/DartConfiguration.tcl
Test project C:/mnt/zint/build
Constructing a list of tests
Done constructing a list of tests
Updating test list for fixtures
Added 0 tests to meet fixture requirements
Checking test dependency graph...
Checking test dependency graph end
test 1
    Start 1: 2of5

1: Test command: C:\mnt\zint\build\backend\tests\Debug\test_2of5.exe
1: Working Directory: C:/mnt/zint/build/backend/tests
1: Environment variables:
1:  CMAKE_CURRENT_SOURCE_DIR=C:/mnt/zint/backend/tests
1: Environment variable modifications:
1:  PATH=path_list_prepend:C:/mnt/zint/build/frontend/Debug
1: Test timeout computed to be: 10000000
1/2 Test #1: 2of5 .............................Exit code 0xc0000135
***Exception:   0.05 sec

Discussion

  • Git Lost

    Git Lost - 2025-10-02

    Hi Ulrich, thanks for pointing this out.

    Eventually got this working by reverting to setting the ENVIRONMENT directly and backslashing semicolons in $ENV{PATH}, rather than using ENVIRONMENT_MODIFICATION and path_list_prepend.

    It seems to work now in the CI and locally, regards, Martin

     
  • Ulrich Becker

    Ulrich Becker - 2025-10-13

    Hi Martin,

    thank you for your fast reaction, now all tests are running successfully in our CI

    Best Regards
    Ulrich

     

Log in to post a comment.