summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2008-12-30 14:54:55 +0000
committerChris Wilson <chris+github@qwirx.com>2008-12-30 14:54:55 +0000
commitf5a529cfd4a9f1920c0b1d75375258dab2d71be1 (patch)
tree83028df92c92eae6557bf6bfecb943a8ca9c8df9 /test
parenta5400afe73492cbb8e0049a7facb2b32f0fcad04 (diff)
Rename NDEBUG flag to BOX_RELEASE_BUILD, as other projects use NDEBUG as
well (e.g. wxWidgets) and it causes conflicts which are difficult to resolve.
Diffstat (limited to 'test')
-rw-r--r--test/backupdiff/testbackupdiff.cpp2
-rw-r--r--test/common/testcommon.cpp8
2 files changed, 5 insertions, 5 deletions
diff --git a/test/backupdiff/testbackupdiff.cpp b/test/backupdiff/testbackupdiff.cpp
index d735befa..816f50d1 100644
--- a/test/backupdiff/testbackupdiff.cpp
+++ b/test/backupdiff/testbackupdiff.cpp
@@ -388,7 +388,7 @@ void test_combined_diffs()
int test(int argc, const char *argv[])
{
// Want to trace out all the details
- #ifndef NDEBUG
+ #ifndef BOX_RELEASE_BUILD
#ifndef WIN32
BackupStoreFile::TraceDetailsOfDiffProcess = true;
#endif
diff --git a/test/common/testcommon.cpp b/test/common/testcommon.cpp
index 9d24a882..da2133cd 100644
--- a/test/common/testcommon.cpp
+++ b/test/common/testcommon.cpp
@@ -298,7 +298,7 @@ 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 NDEBUG
+ #ifndef BOX_RELEASE_BUILD
TEST_CHECK_THROWS(Timers::Add(*(Timer*)NULL),
CommonException, AssertFailed);
TEST_CHECK_THROWS(Timers::Remove(*(Timer*)NULL),
@@ -306,7 +306,7 @@ int test(int argc, const char *argv[])
#endif
// TEST_CHECK_THROWS(Timers::Signal(), CommonException, AssertFailed);
- #ifndef NDEBUG
+ #ifndef BOX_RELEASE_BUILD
TEST_CHECK_THROWS(Timers::Cleanup(), CommonException,
AssertFailed);
#endif
@@ -315,7 +315,7 @@ int test(int argc, const char *argv[])
Timers::Init();
// Check that double initialisation throws an exception
- #ifndef NDEBUG
+ #ifndef BOX_RELEASE_BUILD
TEST_CHECK_THROWS(Timers::Init(), CommonException,
AssertFailed);
#endif
@@ -324,7 +324,7 @@ int test(int argc, const char *argv[])
Timers::Cleanup();
// Check that double cleanup throws an exception
- #ifndef NDEBUG
+ #ifndef BOX_RELEASE_BUILD
TEST_CHECK_THROWS(Timers::Cleanup(), CommonException,
AssertFailed);
#endif