From 91ccb982a3c6fa704dba96035cc42e86b728ce8f Mon Sep 17 00:00:00 2001 From: Dhanya Thattil Date: Wed, 5 Aug 2026 17:32:28 +0200 Subject: [PATCH] 1010/fix/blockadded check if reciever is running (#1502) * added check if reciever is running * added some tests * uups dummy test - deleted test file * changed test * stopped receiver * added some more tests as they also affect fifo structure * fixed tests to work with test_simualtor for all cmdcall tests * minor * fix fro cmdcall back to detectorintegration * removed the .rx marker that we did at soe point * typo * brekaing api change removed --------- Co-authored-by: mazzol_a --- slsDetectorSoftware/tests/CMakeLists.txt | 1 + slsReceiverSoftware/src/ClientInterface.cpp | 3 +++ 2 files changed, 4 insertions(+) diff --git a/slsDetectorSoftware/tests/CMakeLists.txt b/slsDetectorSoftware/tests/CMakeLists.txt index cf8633981..e39ce339b 100755 --- a/slsDetectorSoftware/tests/CMakeLists.txt +++ b/slsDetectorSoftware/tests/CMakeLists.txt @@ -10,6 +10,7 @@ target_sources(tests PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/Caller/test-Caller.cpp ${CMAKE_CURRENT_SOURCE_DIR}/Caller/test-Caller-rx.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/Caller/test-Caller-rx-running.cpp ${CMAKE_CURRENT_SOURCE_DIR}/Caller/test-Caller-pattern.cpp ${CMAKE_CURRENT_SOURCE_DIR}/Caller/test-Caller-eiger.cpp ${CMAKE_CURRENT_SOURCE_DIR}/Caller/test-Caller-jungfrau.cpp diff --git a/slsReceiverSoftware/src/ClientInterface.cpp b/slsReceiverSoftware/src/ClientInterface.cpp index e8b08a656..930c52d0d 100644 --- a/slsReceiverSoftware/src/ClientInterface.cpp +++ b/slsReceiverSoftware/src/ClientInterface.cpp @@ -554,6 +554,7 @@ int ClientInterface::set_num_analog_samples(Interface &socket) { if (detType != CHIPTESTBOARD && detType != XILINX_CHIPTESTBOARD) { functionNotImplemented(); } + verifyIdle(socket); try { impl()->setNumberofAnalogSamples(value); } catch (const std::exception &e) { @@ -570,6 +571,7 @@ int ClientInterface::set_num_digital_samples(Interface &socket) { if (detType != CHIPTESTBOARD && detType != XILINX_CHIPTESTBOARD) { functionNotImplemented(); } + verifyIdle(socket); try { impl()->setNumberofDigitalSamples(value); } catch (const std::exception &e) { @@ -1765,6 +1767,7 @@ int ClientInterface::set_num_transceiver_samples(Interface &socket) { if (detType != CHIPTESTBOARD && detType != XILINX_CHIPTESTBOARD) { functionNotImplemented(); } + verifyIdle(socket); try { impl()->setNumberofTransceiverSamples(value); } catch (const std::exception &e) {