summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2017-11-28 21:18:46 +0000
committerChris Wilson <chris+github@qwirx.com>2017-11-28 21:18:46 +0000
commited55e2b11107a04ad49950d5cf1b2ba7291d3344 (patch)
tree286d456641f4b7e26e13eba452a41ba10a006eca /test
parent447c2cd3d6884b8383884dbbfe65db845ea5c04d (diff)
parent24aca3fc618e36e2feb448bd7b5c05b31a064bd3 (diff)
Merge branch 'master' into windows_binary_packages
Diffstat (limited to 'test')
-rw-r--r--test/common/testcommon.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/test/common/testcommon.cpp b/test/common/testcommon.cpp
index 3de7da1d..cba40fe7 100644
--- a/test/common/testcommon.cpp
+++ b/test/common/testcommon.cpp
@@ -313,16 +313,18 @@ int test(int argc, const char *argv[])
// throws an assertion failure. Can only do this in debug mode
#ifndef BOX_RELEASE_BUILD
{
+ TEST_CHECK_THROWS(Timers::Cleanup(), CommonException,
+ AssertFailed);
+
Timer tim(0, "tim");
TEST_CHECK_THROWS(Timers::Add(tim), CommonException, AssertFailed);
Timers::Remove(tim);
- }
- #endif
- // TEST_CHECK_THROWS(Timers::Signal(), CommonException, AssertFailed);
- #ifndef BOX_RELEASE_BUILD
- TEST_CHECK_THROWS(Timers::Cleanup(), CommonException,
+ TEST_CHECK_THROWS(Timer t1(900, "t1"), CommonException,
AssertFailed);
+
+ // TEST_CHECK_THROWS(Timers::Signal(), CommonException, AssertFailed);
+ }
#endif
// Check that we can initialise the timers