Skip to content

Commit f21be35

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 059c76e commit f21be35

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

roottest/root/core/CMakeLists.txt

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,10 @@ ROOTTEST_ADD_TEST(StatusBitsCheck
3333
OUTREF execStatusBitsCheck.ref)
3434

3535
add_test(NAME root_exe_exitStatus COMMAND $<TARGET_FILE:root.exe> "-e invalid" "--no_exist")
36-
set_property(TEST root_exe_exitStatus PROPERTY WILL_FAIL True)
36+
set_tests_properties(root_exe_exitStatus PROPERTIES
37+
WILL_FAIL True
38+
ENVIRONMENT ROOTIGNOREPREFIX=1)
3739
add_test(NAME root_exe_errorMessage COMMAND $<TARGET_FILE:root.exe> "-e invalid" "--no_exist")
38-
set_property(TEST root_exe_errorMessage PROPERTY
39-
PASS_REGULAR_EXPRESSION "root: unrecognized option '-e invalid'.*--no_exist.*Try 'root --help'")
40+
set_tests_properties(root_exe_errorMessage PROPERTIES
41+
PASS_REGULAR_EXPRESSION "root: unrecognized option '-e invalid'.*--no_exist.*Try 'root --help'"
42+
ENVIRONMENT ROOTIGNOREPREFIX=1)

0 commit comments

Comments
 (0)