Skip to content

Commit 5dac4cc

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 bb5081b commit 5dac4cc

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
@@ -42,7 +42,10 @@ ROOTTEST_ADD_TEST(execStatusBitsCheck
4242
)
4343

4444
add_test(NAME root_exe_exitStatus COMMAND $<TARGET_FILE:root.exe> "-e invalid" "--no_exist")
45-
set_property(TEST root_exe_exitStatus PROPERTY WILL_FAIL True)
45+
set_tests_properties(root_exe_exitStatus PROPERTIES
46+
WILL_FAIL True
47+
ENVIRONMENT ROOTIGNOREPREFIX=1)
4648
add_test(NAME root_exe_errorMessage COMMAND $<TARGET_FILE:root.exe> "-e invalid" "--no_exist")
47-
set_property(TEST root_exe_errorMessage PROPERTY
48-
PASS_REGULAR_EXPRESSION "root: unrecognized option '-e invalid'.*--no_exist.*Try 'root --help'")
49+
set_tests_properties(root_exe_errorMessage PROPERTIES
50+
PASS_REGULAR_EXPRESSION "root: unrecognized option '-e invalid'.*--no_exist.*Try 'root --help'"
51+
ENVIRONMENT ROOTIGNOREPREFIX=1)

0 commit comments

Comments
 (0)