Skip to content

Commit 691ad34

Browse files
committed
[roottest] Run h2root in a subprocess.
Running h2root in a subprocess will allow for marking the test as WILL_FAIL in CTest. If it's not running as a subprocess, the WILL_FAIL has no effect, since it checks the exit status.
1 parent c3abddf commit 691ad34

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

roottest/root/hist/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ROOTTEST_ADD_TEST(assertSparseToTHn
88

99
if(fortran AND CMAKE_Fortran_COMPILER AND NOT CMAKE_Fortran_COMPILER_ID STREQUAL Intel)
1010
ROOTTEST_ADD_TEST(h2root
11-
COMMAND h2root mb4i1.hbook
11+
COMMAND ${CMAKE_COMMAND} -E env h2root mb4i1.hbook
1212
COPY_TO_BUILDDIR mb4i1.hbook
1313
OUTREF h2root.ref)
1414
endif()

0 commit comments

Comments
 (0)