Fix passing application path when invoking tests

We need to pass the application's path here; not the path of the test
itself.
This commit is contained in:
Martchus 2021-11-02 17:48:09 +01:00
parent 11574209b3
commit 9cbff29c9e
1 changed files with 1 additions and 1 deletions

View File

@ -136,7 +136,7 @@ endif ()
unset(TEST_TARGET_OPTIONS)
unset(RUN_TESTS_APPLICATION_ARGS)
if (META_PROJECT_TYPE STREQUAL "application")
set(RUN_TESTS_APPLICATION_ARGS -a "$<TARGET_FILE:${META_TARGET_NAME}_tests>")
set(RUN_TESTS_APPLICATION_ARGS -a "$<TARGET_FILE:${META_TARGET_NAME}>")
endif ()
set(RUN_TESTS_ARGS -p "${CMAKE_CURRENT_SOURCE_DIR}/testfiles" -w "${CMAKE_CURRENT_BINARY_DIR}/testworkingdir"
${RUN_TESTS_APPLICATION_ARGS})