fix production-build unit testing errors (they assumed that assertions were on)
authorMorgan Deters <mdeters@gmail.com>
Wed, 10 Mar 2010 17:23:21 +0000 (17:23 +0000)
committerMorgan Deters <mdeters@gmail.com>
Wed, 10 Mar 2010 17:23:21 +0000 (17:23 +0000)
test/unit/context/context_black.h
test/unit/expr/node_white.h

index f06ed9f427efadff09cc4ec9556541b88e90c479..548b28d6492bbc52dc65868971f76d1c9cedef32 100644 (file)
@@ -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() {
index 88ae5253fec0a0a126f0249b0159152c7df90873..5b63557ba986dacdc61de8040f3296488b95b8b4 100644 (file)
@@ -235,7 +235,9 @@ public:
     Debug("boolattr", "get flag 1 on c (should be F)\n");
     TS_ASSERT(! c.getAttribute(TestFlag1cd()));
 
+#ifdef CVC4_ASSERTIONS
     TS_ASSERT_THROWS( d_ctxt->pop(), AssertionException );
+#endif /* CVC4_ASSERTIONS */
   }
 
   void testAttributes() {