summaryrefslogtreecommitdiff
path: root/test/unit/context/cdmap_white.h
diff options
context:
space:
mode:
authorMathias Preiner <mathias.preiner@gmail.com>2019-10-30 15:27:10 -0700
committerGitHub <noreply@github.com>2019-10-30 15:27:10 -0700
commit43ab3f4cd1aa5549cb1aa3c20a2d589614bcb8fc (patch)
treecf7b5d7f73a4d4ddc34492334a7d0eb90b57b77b /test/unit/context/cdmap_white.h
parent8dda9531995953c3cec094339002f2ee7cadae08 (diff)
Unify CVC4_CHECK/CVC4_DCHECK/AlwaysAssert/Assert. (#3366)
Diffstat (limited to 'test/unit/context/cdmap_white.h')
-rw-r--r--test/unit/context/cdmap_white.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/test/unit/context/cdmap_white.h b/test/unit/context/cdmap_white.h
index 1a1f683bc..d22ecc7f1 100644
--- a/test/unit/context/cdmap_white.h
+++ b/test/unit/context/cdmap_white.h
@@ -16,8 +16,9 @@
#include <cxxtest/TestSuite.h>
-#include "base/cvc4_assert.h"
+#include "base/check.h"
#include "context/cdhashmap.h"
+#include "test_utils.h"
using namespace std;
using namespace CVC4;
@@ -38,12 +39,12 @@ class CDMapWhite : public CxxTest::TestSuite {
TS_ASSERT_THROWS_NOTHING(map.makeCurrent());
- TS_ASSERT_THROWS(map.update(), UnreachableCodeException&);
+ TS_UTILS_EXPECT_ABORT(map.update());
- TS_ASSERT_THROWS(map.save(d_context->getCMM()), UnreachableCodeException&);
- TS_ASSERT_THROWS(map.restore(&map), UnreachableCodeException&);
+ TS_UTILS_EXPECT_ABORT(map.save(d_context->getCMM()));
+ TS_UTILS_EXPECT_ABORT(map.restore(&map));
d_context->push();
- TS_ASSERT_THROWS(map.makeCurrent(), UnreachableCodeException&);
+ TS_UTILS_EXPECT_ABORT(map.makeCurrent());
}
};
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback