From fda0f46acd4ad63378034a7706592b6a8bc44fc0 Mon Sep 17 00:00:00 2001
From: Martin Hierholzer <martin.hierholzer@desy.de>
Date: Fri, 30 Apr 2021 11:19:39 +0200
Subject: [PATCH] fix failed compilation on Tumbleweed

---
 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 fb5e8b75..8dda1aab 100644
--- a/tests/executables_src/testExceptionHandling.cc
+++ b/tests/executables_src/testExceptionHandling.cc
@@ -2,10 +2,6 @@
 
 #include <boost/mpl/list.hpp>
 
-#define BOOST_NO_EXCEPTIONS
-#include <boost/test/included/unit_test.hpp>
-#undef BOOST_NO_EXCEPTIONS
-
 #include <chrono>
 #include <cstring>
 #include <future>
@@ -24,6 +20,11 @@
 #include "check_timeout.h"
 #include "fixtures.h"
 
+// this #include must come last
+#define BOOST_NO_EXCEPTIONS
+#include <boost/test/included/unit_test.hpp>
+#undef BOOST_NO_EXCEPTIONS
+
 using namespace boost::unit_test_framework;
 namespace ctk = ChimeraTK;
 using Fixture = fixture_with_poll_and_push_input<false>;
-- 
GitLab