-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
inconsistent semicolon expansion in catch_discover_tests #2214
Labels
Extras
Touches utility scripts outside of Catch2 proper, e.g. CMake integration.
Comments
horenmar
added
the
Extras
Touches utility scripts outside of Catch2 proper, e.g. CMake integration.
label
Apr 13, 2021
georg-emg
pushed a commit
to georg-emg/Catch2
that referenced
this issue
Apr 14, 2021
georg-emg
pushed a commit
to georg-emg/Catch2
that referenced
this issue
Apr 14, 2021
This was referenced Apr 14, 2021
horenmar
pushed a commit
that referenced
this issue
Apr 16, 2021
horenmar
pushed a commit
that referenced
this issue
Apr 16, 2021
This issue is mentioned in the changelog for 2.13.6, but the PR that fixed it (#2215) is actually merged into |
Ah, sorry, my bad! I failed to realize this is related to CMake, not the hpp file. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When using the cmake command
catch_discover_tests
on a target with a propertyCROSSCOMPILING_EMULATOR
, catch2 will use the emulator to discover and execute tests. If one of the parameters of the cross compiling emulator contains an escaped semicolon, however, the behaviour is inconsistent between the test discovery and the test execution. When running the test app to discover the tests, escaped semicolons are correctly turned into plain semicolons. When the tests are then run using ctest, however, escaped semicolons are falsely interpreted as separators between individual command line parameters.Example:
consider the following cmake code fragment for a Windows test app:
This will run myTestApp.exe as:
however, the generated include file
myTestApp_tests-xxxxxxx.cmake
that contains the cmake tests, will contain lines in the form:instead of:
The text was updated successfully, but these errors were encountered: