From 3109b4e94f4f2d1de336908829a994daa6a4f8a2 Mon Sep 17 00:00:00 2001
From: Martin Hierholzer <martin.hierholzer@desy.de>
Date: Mon, 20 Jan 2020 13:13:50 +0100
Subject: [PATCH] fix test, requred after recent API changes (initial value
 propagation)

---
 tests/executables_src/testExceptionHandling.cc | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/tests/executables_src/testExceptionHandling.cc b/tests/executables_src/testExceptionHandling.cc
index f591c742..8169eb19 100644
--- a/tests/executables_src/testExceptionHandling.cc
+++ b/tests/executables_src/testExceptionHandling.cc
@@ -154,6 +154,10 @@ BOOST_AUTO_TEST_CASE(testExceptionHandlingRead) {
 
   auto trigger = test.getScalar<int>("trigger");
 
+  // we do not use testable mode, so we need to read the initial values at CS ourself where present
+  readback1.read();
+  readback2.read();
+
   readbackDummy1 = 42;
   readbackDummy2 = 52;
 
@@ -426,10 +430,7 @@ BOOST_AUTO_TEST_CASE(testShutdown) {
   TestApplication2 app;
 
   ctk::TestFacility test(false); // test facility without testable mode
-
-  app.initialise();
-  app.run();
-  //app.dumpConnections();
+  test.runApplication();
 
   //Wait for the devices to come up.
   CHECK_EQUAL_TIMEOUT(test.readScalar<int32_t>(ctk::RegisterPath("/Devices") / ExceptionDummyCDD1 / "status"), 0, 3000);
-- 
GitLab