summaryrefslogtreecommitdiff
path: root/test/common/testcommon.cpp
diff options
context:
space:
mode:
authorChris Wilson <qris@users.noreply.github.com>2017-11-30 19:59:49 +0000
committerGitHub <noreply@github.com>2017-11-30 19:59:49 +0000
commita0fa0c4f5f338335034f172af290025d48d5a1d5 (patch)
tree286d456641f4b7e26e13eba452a41ba10a006eca /test/common/testcommon.cpp
parent24aca3fc618e36e2feb448bd7b5c05b31a064bd3 (diff)
parented55e2b11107a04ad49950d5cf1b2ba7291d3344 (diff)
Merge pull request #20 from boxbackup/windows_binary_packages
Build Win32/64 binary packages automatically
Diffstat (limited to 'test/common/testcommon.cpp')
-rw-r--r--test/common/testcommon.cpp13
1 files changed, 11 insertions, 2 deletions
diff --git a/test/common/testcommon.cpp b/test/common/testcommon.cpp
index bcfc92e1..cba40fe7 100644
--- a/test/common/testcommon.cpp
+++ b/test/common/testcommon.cpp
@@ -312,10 +312,19 @@ int test(int argc, const char *argv[])
// Check that using timer methods without initialisation
// throws an assertion failure. Can only do this in debug mode
#ifndef BOX_RELEASE_BUILD
- TEST_CHECK_THROWS(Timer t1(900, "t1"), CommonException,
- AssertFailed);
+ {
TEST_CHECK_THROWS(Timers::Cleanup(), CommonException,
AssertFailed);
+
+ Timer tim(0, "tim");
+ TEST_CHECK_THROWS(Timers::Add(tim), CommonException, AssertFailed);
+ Timers::Remove(tim);
+
+ TEST_CHECK_THROWS(Timer t1(900, "t1"), CommonException,
+ AssertFailed);
+
+ // TEST_CHECK_THROWS(Timers::Signal(), CommonException, AssertFailed);
+ }
#endif
// Check that we can initialise the timers