From 9cbff29c9edf795babae3feee369a8dad69dd582 Mon Sep 17 00:00:00 2001 From: Martchus Date: Tue, 2 Nov 2021 17:48:09 +0100 Subject: [PATCH] Fix passing application path when invoking tests We need to pass the application's path here; not the path of the test itself. --- cmake/modules/TestTarget.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/modules/TestTarget.cmake b/cmake/modules/TestTarget.cmake index 90741be..336671a 100644 --- a/cmake/modules/TestTarget.cmake +++ b/cmake/modules/TestTarget.cmake @@ -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 "$") + set(RUN_TESTS_APPLICATION_ARGS -a "$") endif () set(RUN_TESTS_ARGS -p "${CMAKE_CURRENT_SOURCE_DIR}/testfiles" -w "${CMAKE_CURRENT_BINARY_DIR}/testworkingdir" ${RUN_TESTS_APPLICATION_ARGS})