summaryrefslogtreecommitdiffstats
path: root/mfbt/tests/TestUniquePtr.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'mfbt/tests/TestUniquePtr.cpp')
-rw-r--r--mfbt/tests/TestUniquePtr.cpp11
1 files changed, 4 insertions, 7 deletions
diff --git a/mfbt/tests/TestUniquePtr.cpp b/mfbt/tests/TestUniquePtr.cpp
index 03f9033fe5..be49230e6e 100644
--- a/mfbt/tests/TestUniquePtr.cpp
+++ b/mfbt/tests/TestUniquePtr.cpp
@@ -21,13 +21,10 @@ using mozilla::UniqueFreePtr;
using mozilla::UniquePtr;
using mozilla::Vector;
-#define CHECK(c) \
- do { \
- bool cond = !!(c); \
- MOZ_ASSERT(cond, "Failed assertion: " #c); \
- if (!cond) { \
- return false; \
- } \
+#define CHECK(c) \
+ do { \
+ bool cond = !!(c); \
+ MOZ_RELEASE_ASSERT(cond, "Test failed: " #c); \
} while (false)
typedef UniquePtr<int> NewInt;