Skip exception test in valgrind run.
continuous-integration/drone/push Build is passing Details

Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
This commit is contained in:
Deukhoofd 2020-08-16 17:53:04 +02:00
parent a828e2d09c
commit 9d5316edff
Signed by: Deukhoofd
GPG Key ID: F63E044490819F6F
2 changed files with 3 additions and 3 deletions

View File

@ -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 -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 - cmake --build build-release --target all -- -j 4
- build-release/CreatureLibTests -s --durations yes --use-colour yes - 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 - name: style-check
image: deukhoofd/linux64builder image: deukhoofd/linux64builder
failure: ignore failure: ignore

View File

@ -4,7 +4,7 @@
#include "../extern/catch.hpp" #include "../extern/catch.hpp"
#include "../src/Library/Exceptions/CreatureException.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; bool hasCaught = false;
try { try {
THROW_CREATURE("foobar"); THROW_CREATURE("foobar");
@ -16,7 +16,7 @@ TEST_CASE("When throwing exception, what() is readable", "[Utilities]") {
REQUIRE(hasCaught); REQUIRE(hasCaught);
} }
TEST_CASE("C Interface exception", "[Utilities]") { TEST_CASE("C Interface exception", "[Utilities][Exception]") {
ExceptionHandler::SetLastArbUtException("foo", ArbUt::Exception("foobar"), 1); ExceptionHandler::SetLastArbUtException("foo", ArbUt::Exception("foobar"), 1);
REQUIRE(std::string(ExceptionHandler::GetLastException()) == "[foo] foobar"); REQUIRE(std::string(ExceptionHandler::GetLastException()) == "[foo] foobar");