From 9d5316edff77be6ce4970c9904095f042fe68367 Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Sun, 16 Aug 2020 17:53:04 +0200 Subject: [PATCH] Skip exception test in valgrind run. Signed-off-by: Deukhoofd --- .drone.yml | 2 +- tests/ExceptionTests.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.drone.yml b/.drone.yml index 0e84567..2cbe4eb 100644 --- a/.drone.yml +++ b/.drone.yml @@ -33,7 +33,7 @@ steps: - cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=/usr/bin/clang -DCMAKE_CXX_COMPILER=/usr/bin/clang++ . -B build-release -DSTATICC=ON -DTESTS=ON - cmake --build build-release --target all -- -j 4 - build-release/CreatureLibTests -s --durations yes --use-colour yes - - valgrind --tool=memcheck --gen-suppressions=all --leak-check=full --leak-resolution=med --track-origins=yes --vgdb=no --error-exitcode=1 build-release/CreatureLibTests + - valgrind --tool=memcheck --gen-suppressions=all --leak-check=full --leak-resolution=med --track-origins=yes --vgdb=no --error-exitcode=1 build-release/CreatureLibTests ~\[Exception\] - name: style-check image: deukhoofd/linux64builder failure: ignore diff --git a/tests/ExceptionTests.cpp b/tests/ExceptionTests.cpp index d084d11..a17ae4c 100644 --- a/tests/ExceptionTests.cpp +++ b/tests/ExceptionTests.cpp @@ -4,7 +4,7 @@ #include "../extern/catch.hpp" #include "../src/Library/Exceptions/CreatureException.hpp" -TEST_CASE("When throwing exception, what() is readable", "[Utilities]") { +TEST_CASE("When throwing exception, what() is readable", "[Utilities][Exception]") { bool hasCaught = false; try { THROW_CREATURE("foobar"); @@ -16,7 +16,7 @@ TEST_CASE("When throwing exception, what() is readable", "[Utilities]") { REQUIRE(hasCaught); } -TEST_CASE("C Interface exception", "[Utilities]") { +TEST_CASE("C Interface exception", "[Utilities][Exception]") { ExceptionHandler::SetLastArbUtException("foo", ArbUt::Exception("foobar"), 1); REQUIRE(std::string(ExceptionHandler::GetLastException()) == "[foo] foobar");