Skip to content

Commit 31d0e53

Browse files
committed
[roottest] Add missing environment variable for tests.
When gnuinstall=On, ROOT needs to ignore the library directory prefix while still in the build tree.
1 parent 842dad2 commit 31d0e53

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

roottest/root/core/CMakeLists.txt

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,10 @@ ROOTTEST_ADD_TEST(execStatusBitsCheck
3737
)
3838

3939
add_test(NAME root_exe_exitStatus COMMAND $<TARGET_FILE:root.exe> "-e invalid" "--no_exist")
40-
set_property(TEST root_exe_exitStatus PROPERTY WILL_FAIL True)
40+
set_tests_properties(root_exe_exitStatus PROPERTIES
41+
WILL_FAIL True
42+
ENVIRONMENT ROOTIGNOREPREFIX=1)
4143
add_test(NAME root_exe_errorMessage COMMAND $<TARGET_FILE:root.exe> "-e invalid" "--no_exist")
42-
set_property(TEST root_exe_errorMessage PROPERTY
43-
PASS_REGULAR_EXPRESSION "root: unrecognized option '-e invalid'.*--no_exist.*Try 'root --help'")
44+
set_tests_properties(root_exe_errorMessage PROPERTIES
45+
PASS_REGULAR_EXPRESSION "root: unrecognized option '-e invalid'.*--no_exist.*Try 'root --help'"
46+
ENVIRONMENT ROOTIGNOREPREFIX=1)

0 commit comments

Comments
 (0)