diff options
author | Mathias Preiner <mathias.preiner@gmail.com> | 2019-10-30 15:27:10 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-30 15:27:10 -0700 |
commit | 43ab3f4cd1aa5549cb1aa3c20a2d589614bcb8fc (patch) | |
tree | cf7b5d7f73a4d4ddc34492334a7d0eb90b57b77b /test/unit/context/context_black.h | |
parent | 8dda9531995953c3cec094339002f2ee7cadae08 (diff) |
Unify CVC4_CHECK/CVC4_DCHECK/AlwaysAssert/Assert. (#3366)
Diffstat (limited to 'test/unit/context/context_black.h')
-rw-r--r-- | test/unit/context/context_black.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/unit/context/context_black.h b/test/unit/context/context_black.h index 3659d3494..258c3fd9b 100644 --- a/test/unit/context/context_black.h +++ b/test/unit/context/context_black.h @@ -19,11 +19,11 @@ #include <iostream> #include <vector> -#include "base/cvc4_assert.h" +#include "base/exception.h" #include "context/cdlist.h" #include "context/cdo.h" #include "context/context.h" - +#include "test_utils.h" using namespace std; using namespace CVC4; @@ -106,8 +106,8 @@ private: d_context->push(); d_context->pop(); #ifdef CVC4_ASSERTIONS - TS_ASSERT_THROWS(d_context->pop(), AssertionException&); - TS_ASSERT_THROWS(d_context->pop(), AssertionException&); + TS_UTILS_EXPECT_ABORT(d_context->pop()); + TS_UTILS_EXPECT_ABORT(d_context->pop()); #endif /* CVC4_ASSERTIONS */ } |