From 5811e4e9ab3dd7fa56ae78ee8b42a6cd9003fa56 Mon Sep 17 00:00:00 2001 From: Dhanya Thattil Date: Wed, 28 Jan 2026 15:30:42 +0100 Subject: [PATCH] added tests to ensure startup val is not -1 or -100 after powerchip in config for xilinx --- .../tests/Caller/test-Caller-chiptestboard.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/slsDetectorSoftware/tests/Caller/test-Caller-chiptestboard.cpp b/slsDetectorSoftware/tests/Caller/test-Caller-chiptestboard.cpp index 795937ee1..a36576d7d 100644 --- a/slsDetectorSoftware/tests/Caller/test-Caller-chiptestboard.cpp +++ b/slsDetectorSoftware/tests/Caller/test-Caller-chiptestboard.cpp @@ -1046,6 +1046,12 @@ TEST_CASE("v_abcd", "[.cmdcall]") { if (det_type == defs::CHIPTESTBOARD || det_type == defs::XILINX_CHIPTESTBOARD) { auto prev_val = det.getPower(indices[i]); + // this is the first command touching power dacs, should not be + // -100 + if (det_type == defs::XILINX_CHIPTESTBOARD) { + REQUIRE(prev_val.any(-100) == false); + REQUIRE(prev_val.any(-1) == false); + } { std::ostringstream oss; caller.call(cmds[i], {"0"}, -1, PUT, oss);