From b2b2d4891e813ecde1e1ed97ca6547f154f63994 Mon Sep 17 00:00:00 2001 From: Markus Frank Date: Mon, 21 Oct 2024 16:32:53 +0200 Subject: [PATCH] Add test using signal DDCore handler --- examples/ClientTests/CMakeLists.txt | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/examples/ClientTests/CMakeLists.txt b/examples/ClientTests/CMakeLists.txt index a32a0cc97..a6b208cda 100644 --- a/examples/ClientTests/CMakeLists.txt +++ b/examples/ClientTests/CMakeLists.txt @@ -469,6 +469,15 @@ dd4hep_add_test_reg( box_shape_build_type REGEX_FAIL "Exception;EXCEPTION;ERROR" ) # +# Test interrupt handling in the middle of the geometry construction +dd4hep_add_test_reg( ClientTests_interrupt_geometry_construction + COMMAND "${CMAKE_INSTALL_PREFIX}/bin/run_test_ClientTests.sh" + EXEC_ARGS geoDisplay -compact ${ClientTestsEx_INSTALL}/compact/InterruptTrigger.xml + -load -print INFO + REGEX_PASS "\\+\\+\\+ Caught signal: 2 context: 0xfeedbabe. exit process." + REGEX_FAIL "Exception;EXCEPTION;ERROR" +) +# # EXEC_ARGS test_with_root.sh ${script} # if (DD4HEP_USE_GEANT4)