-
-
Notifications
You must be signed in to change notification settings - Fork 621
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
doctest_discover_tests fails with ASAN on Windows #836
Comments
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. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: