Skip to content

Commit 007f7ca

Browse files
committed
Disabled debugger tests when the debugger is not available
1 parent 08bb94f commit 007f7ca

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ if (NOT DEFINED XPYTHON_DEBUGGER_AVAILABLE)
122122
set(XPYTHON_DEBUGGER_AVAILABLE "false")
123123
else ()
124124
set(XPYTHON_DEBUGGER_AVAILABLE "true")
125+
set(XPYT_TEST_DEBUGGER TRUE)
125126
endif ()
126127
message(STATUS "XPYTHON_DEBUGGER_AVAILABLE=${XPYTHON_DEBUGGER_AVAILABLE}")
127128
endif ()

test/CMakeLists.txt

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,16 @@ include_directories(${GTEST_INCLUDE_DIRS} SYSTEM)
5050
set(XEUS_PYTHON_TESTS
5151
main.cpp
5252
../src/xutils.cpp
53-
test_debugger.cpp
54-
xeus_client.hpp
55-
xeus_client.cpp
5653
)
5754

55+
if (${XPYT_TEST_DEBUGGER})
56+
list(APPEND ${XEUS_PYTHON_TESTS}
57+
test_debugger.cpp
58+
xeus_client.hpp
59+
xeus_client.cpp
60+
)
61+
endif ()
62+
5863
add_executable(test_xeus_python ${XEUS_PYTHON_TESTS})
5964

6065
target_compile_features(test_xeus_python PRIVATE cxx_std_17)

0 commit comments

Comments
 (0)