From 8a194ddaa01fb2a3bb9edd7253818111df135d81 Mon Sep 17 00:00:00 2001 From: Alice Date: Mon, 8 Dec 2025 09:10:11 +0100 Subject: [PATCH] check frames for HDF5 --- slsDetectorSoftware/tests/Caller/test-Caller-global.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/slsDetectorSoftware/tests/Caller/test-Caller-global.cpp b/slsDetectorSoftware/tests/Caller/test-Caller-global.cpp index cc7d936e7..472bc9cda 100644 --- a/slsDetectorSoftware/tests/Caller/test-Caller-global.cpp +++ b/slsDetectorSoftware/tests/Caller/test-Caller-global.cpp @@ -188,9 +188,11 @@ void create_files_for_acquire( // acquire and get num frames caught test_acquire_with_receiver(caller, det); - frames_caught = det.getFramesCaught().tsquash( - "Inconsistent number of frames caught")[0]; - REQUIRE(frames_caught == num_frames); + if (check_num_frames) { + auto frames_caught = det.getFramesCaught().tsquash( + "Inconsistent number of frames caught")[0]; + REQUIRE(frames_caught == num_frames); + } #endif // restore previous state