diff --git a/tests/executables_src/testExceptionHandling.cc b/tests/executables_src/testExceptionHandling.cc index fb5e8b759d27f23795bc3106d5b30d8d6ffe7c7f..8dda1aaba95aa5a919449afa8ec90512237b0537 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>;