You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The doctest_discover_tests CMake function runs a test binary to discover tests and add them to CTest.
When the test binary is built with ASAN on Windows (/fsanitize=address), this invocation of the test binary fails. Based on the error code, it seems that the test binary is not able to find the ASAN libraries when launched in this way.
I've encountered similar issue with gtest and I'm 99% sure that the issue with doctest is the same. The problem (with gtest at least) is that it can't find ASAN's DLL. You can copy all required DLLs via custom command in CMake.
Description
The
doctest_discover_tests
CMake function runs a test binary to discover tests and add them to CTest.When the test binary is built with ASAN on Windows (
/fsanitize=address
), this invocation of the test binary fails. Based on the error code, it seems that the test binary is not able to find the ASAN libraries when launched in this way.Steps to reproduce
I have made a small example case in this git repo:
https://github.com/bifurcation/doctest-fail
See, for example, this CI run:
https://github.com/bifurcation/doctest-fail/actions/runs/7201754266/job/19618531004
Extra information
That is, the problems shows up on a
windows-latest
GitHub actions runnerThe text was updated successfully, but these errors were encountered: