From 66762614a959cefc0aac443f3ce189189f1c4b3b Mon Sep 17 00:00:00 2001 From: Dhanya Thattil Date: Fri, 11 Apr 2025 10:12:26 +0200 Subject: [PATCH] fix tests for fpath: cannot set back to empty anymore (empty is default) --- slsDetectorSoftware/tests/Caller/test-Caller-rx.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/slsDetectorSoftware/tests/Caller/test-Caller-rx.cpp b/slsDetectorSoftware/tests/Caller/test-Caller-rx.cpp index 66cc474d6..ebb3ff714 100644 --- a/slsDetectorSoftware/tests/Caller/test-Caller-rx.cpp +++ b/slsDetectorSoftware/tests/Caller/test-Caller-rx.cpp @@ -585,6 +585,9 @@ TEST_CASE("fpath", "[.cmdcall]") { REQUIRE(oss.str() == "fpath /tmp\n"); } for (int i = 0; i != det.size(); ++i) { + if (prev_val[i].empty()) { + continue; + } det.setFilePath(prev_val[i], {i}); } }