From 7f5f2394d3f3dccf2e6a07a466f3840dafed8e04 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 11 May 2016 17:21:45 +0300 Subject: In checkutils with unit tests enabled, any failed assert will throw exception. --- src/utils/checkutils_unittest.cc | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'src/utils/checkutils_unittest.cc') diff --git a/src/utils/checkutils_unittest.cc b/src/utils/checkutils_unittest.cc index 0d09143c3..cbf26fa7b 100644 --- a/src/utils/checkutils_unittest.cc +++ b/src/utils/checkutils_unittest.cc @@ -35,39 +35,39 @@ namespace static void testReturnFalseV(const bool val) { flag = false; - returnFalseV(val); + returnFalseVReal(val); flag = true; } static void testReturnTrueV(const bool val) { flag = false; - returnTrueV(val); + returnTrueVReal(val); flag = true; } static int testReturnFalse(const bool val) { - returnFalse(0, val); + returnFalseReal(0, val); return 1; } static int testReturnTrue(const bool val) { - returnTrue(0, val); + returnTrueReal(0, val); return 1; } static int testReturnNullptr(void *val) { - returnNullptr(0, val); + returnNullptrReal(0, val); return 1; } static void testReturnNullptrV(void *val) { flag = false; - returnNullptrV(val); + returnNullptrVReal(val); flag = true; } @@ -77,14 +77,14 @@ TEST_CASE("CheckUtils") SECTION("reportFalse") { - REQUIRE(reportFalse(false) == false); - REQUIRE(reportFalse(true) == true); + REQUIRE(reportFalseReal(false) == false); + REQUIRE(reportFalseReal(true) == true); } SECTION("reportTrue") { - REQUIRE(reportTrue(false) == false); - REQUIRE(reportTrue(true) == true); + REQUIRE(reportTrueReal(false) == false); + REQUIRE(reportTrueReal(true) == true); } SECTION("failFalse") -- cgit v1.2.3-70-g09d2