Skip to content

Commit c63c64d

Browse files
committed
[roottest] use ROOTEXE_OPTS for includes in cling/staticinit
Setup correct fixture for ROOT-10426 test
1 parent a1578c5 commit c63c64d

File tree

2 files changed

+15
-8
lines changed

2 files changed

+15
-8
lines changed
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
set(RootExternalIncludes -e "gInterpreter->AddIncludePath(\"-I${CMAKE_CURRENT_SOURCE_DIR}\");")
2-
31
ROOTTEST_ADD_TEST(ROOT-7775
42
MACRO execROOT-7775.C
3+
ROOTEXE_OPTS -e "gInterpreter->AddIncludePath(\"-I${CMAKE_CURRENT_SOURCE_DIR}\")"
54
OUTREF execROOT-7775.ref)
65

76
ROOTTEST_ADD_TESTDIRS()

roottest/cling/staticinit/ROOT-10426/CMakeLists.txt

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,22 @@
44
#
55
# For modules we load based on the missing symbol, i.e. after the parent
66
# transaction has been committed.
7-
if(NOT ROOT_runtime_cxxmodules_FOUND)
7+
if(NOT runtime_cxxmodules)
88
return()
99
endif()
1010

11-
add_library(ROOT10426 SHARED
12-
ROOT10426.cxx)
11+
add_library(ROOT10426 SHARED ROOT10426.cxx)
1312
target_link_libraries(ROOT10426 PUBLIC ROOT::Core)
1413

15-
ROOTTEST_ADD_TEST(ROOT-10426
16-
MACRO execROOT10426.C
17-
OUTREF execROOT10426.ref)
14+
add_test(NAME roottest-cling-staticinit-ROOT-10426-lib
15+
COMMAND ${CMAKE_COMMAND} --build ${CMAKE_BINARY_DIR}
16+
${build_config}
17+
--target ROOT10426${fast}
18+
-- ${always-make})
19+
20+
set_property(TEST roottest-cling-staticinit-ROOT-10426-lib PROPERTY FIXTURES_SETUP cling-staticinit-ROOT-10426-fixture)
21+
22+
ROOTTEST_ADD_TEST(run
23+
MACRO execROOT10426.C
24+
OUTREF execROOT10426.ref
25+
FIXTURES_REQUIRED cling-staticinit-ROOT-10426-fixture)

0 commit comments

Comments
 (0)