summaryrefslogtreecommitdiff
path: root/test/unit/context/context_black.h
diff options
context:
space:
mode:
authorMorgan Deters <mdeters@gmail.com>2010-03-10 17:23:21 +0000
committerMorgan Deters <mdeters@gmail.com>2010-03-10 17:23:21 +0000
commit3908dc0247d9cffa67f87294374bbd10a797b1e5 (patch)
tree478192e4287ea7844d1dc24b894ab3b7d8269604 /test/unit/context/context_black.h
parentf50d6702ad0ffc5a10308abc2a43f86a9b623a8c (diff)
fix production-build unit testing errors (they assumed that assertions were on)
Diffstat (limited to 'test/unit/context/context_black.h')
-rw-r--r--test/unit/context/context_black.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/unit/context/context_black.h b/test/unit/context/context_black.h
index f06ed9f42..548b28d64 100644
--- a/test/unit/context/context_black.h
+++ b/test/unit/context/context_black.h
@@ -56,8 +56,10 @@ public:
// the interface doesn't declare any exceptions
d_context->push();
d_context->pop();
+#ifdef CVC4_ASSERTIONS
TS_ASSERT_THROWS( d_context->pop(), AssertionException );
TS_ASSERT_THROWS( d_context->pop(), AssertionException );
+#endif /* CVC4_ASSERTIONS */
}
void tearDown() {
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback