From 9d20bf25c663d052f531b95ae34c30dfe945aab5 Mon Sep 17 00:00:00 2001 From: Dhanya Thattil Date: Thu, 25 Nov 2021 10:51:59 +0100 Subject: [PATCH] fix tests --- slsDetectorSoftware/tests/test-CmdProxy.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/slsDetectorSoftware/tests/test-CmdProxy.cpp b/slsDetectorSoftware/tests/test-CmdProxy.cpp index e025c6ee8..b7d61ffea 100644 --- a/slsDetectorSoftware/tests/test-CmdProxy.cpp +++ b/slsDetectorSoftware/tests/test-CmdProxy.cpp @@ -542,8 +542,8 @@ TEST_CASE("fliprows", "[.cmd]") { auto det_type = det.getDetectorType().squash(); bool jungfrauhw2 = false; if (det_type == defs::JUNGFRAU && - (det.getSerialNumber().tsquash("inconsistent serial number to test") & - 0x30000)) { + ((det.getSerialNumber().tsquash("inconsistent serial number to test") & + 0x30000) == 0x30000)) { jungfrauhw2 = true; } if (det_type == defs::EIGER || jungfrauhw2) { @@ -1559,9 +1559,9 @@ TEST_CASE("readnrows", "[.cmd]") { if (det_type == defs::EIGER || det_type == defs::JUNGFRAU) { bool jungfrauhw2 = false; if (det_type == defs::JUNGFRAU && - (det.getSerialNumber().tsquash( + ((det.getSerialNumber().tsquash( "inconsistent serial number to test") & - 0x30000)) { + 0x30000) == 0x30000)) { jungfrauhw2 = true; } if (!jungfrauhw2) {