diff --git a/alib2aux/src/debug/Segfault.cpp b/alib2integrationtest/test-src/algorithms/Segfault.cpp similarity index 86% rename from alib2aux/src/debug/Segfault.cpp rename to alib2integrationtest/test-src/algorithms/Segfault.cpp index 5bd63b1a8bf9bf007c66dd2ad91f48c710013df1..8fc29efef86799c5ce7111dc44c2c7ab0c988514 100644 --- a/alib2aux/src/debug/Segfault.cpp +++ b/alib2integrationtest/test-src/algorithms/Segfault.cpp @@ -10,24 +10,16 @@ namespace debug { -#ifdef DEBUG - int debug::Segfault::segfault ( ) { return * NULL_VALUE; } int * debug::Segfault::NULL_VALUE; -#endif /* DEBUG */ - } /* namespace debug */ namespace { -#ifdef DEBUG - auto SegfaultInt = registration::AbstractRegister < debug::Segfault, int > ( debug::Segfault::segfault ); -#endif /* DEBUG */ - } /* namespace */ diff --git a/alib2aux/src/debug/Segfault.h b/alib2integrationtest/test-src/algorithms/Segfault.h similarity index 88% rename from alib2aux/src/debug/Segfault.h rename to alib2integrationtest/test-src/algorithms/Segfault.h index 47520b63b68efb505a425174ed09e4e7d08be838..494f19adc7e0ecfaa265e0ba5cc9d7406ae00df2 100644 --- a/alib2aux/src/debug/Segfault.h +++ b/alib2integrationtest/test-src/algorithms/Segfault.h @@ -10,8 +10,6 @@ namespace debug { -#ifdef DEBUG - class Segfault { static int * NULL_VALUE; @@ -19,8 +17,6 @@ public: static int segfault ( ); }; -#endif /* DEBUG */ - } /* namespace debug */ #endif /* SEGFAULT_H_ */ diff --git a/alib2aux/src/debug/UndefinedBehaviour.cpp b/alib2integrationtest/test-src/algorithms/UndefinedBehaviour.cpp similarity index 93% rename from alib2aux/src/debug/UndefinedBehaviour.cpp rename to alib2integrationtest/test-src/algorithms/UndefinedBehaviour.cpp index 370958c00540589b8ef9bb64dec48e070942963f..90ce3660fc84b576b12ef0afccb91b61b53b23bc 100644 --- a/alib2aux/src/debug/UndefinedBehaviour.cpp +++ b/alib2integrationtest/test-src/algorithms/UndefinedBehaviour.cpp @@ -8,8 +8,6 @@ #include "UndefinedBehaviour.h" #include <registration/AlgoRegistration.hpp> -#ifdef DEBUG - namespace debug { int UndefinedBehaviour::undefined_behaviour ( ) { @@ -26,5 +24,3 @@ namespace { auto UndefinedBehaviourInt = registration::AbstractRegister < debug::UndefinedBehaviour, int > ( debug::UndefinedBehaviour::undefined_behaviour ); } /* namespace */ - -#endif /* DEBUG */ diff --git a/alib2aux/src/debug/UndefinedBehaviour.h b/alib2integrationtest/test-src/algorithms/UndefinedBehaviour.h similarity index 90% rename from alib2aux/src/debug/UndefinedBehaviour.h rename to alib2integrationtest/test-src/algorithms/UndefinedBehaviour.h index e690b7773ce00f8d3aa8132772371687b45b004e..dbcdd53ef5c012de96cc33a0a7fe55b9c2352d27 100644 --- a/alib2aux/src/debug/UndefinedBehaviour.h +++ b/alib2integrationtest/test-src/algorithms/UndefinedBehaviour.h @@ -8,8 +8,6 @@ #ifndef UNDEFINED_BEHAVIOUR_H_ #define UNDEFINED_BEHAVIOUR_H_ -#ifdef DEBUG - namespace debug { class UndefinedBehaviour { @@ -20,6 +18,4 @@ public: } /* namespace debug */ -#endif /* DEBUG */ - #endif /* UNDEFINED_BEHAVIOUR_H_ */ diff --git a/alib2integrationtest/test-src/tests/dummyTest.cpp b/alib2integrationtest/test-src/tests/dummyTest.cpp index 0df5ef9590d603208840eda4243818ce05eb350a..633f2c401159343fb3ff4b7b975d660770b7ec5f 100644 --- a/alib2integrationtest/test-src/tests/dummyTest.cpp +++ b/alib2integrationtest/test-src/tests/dummyTest.cpp @@ -13,8 +13,7 @@ TEST_CASE ( "AQL Test", "[integration][dummy][!shouldfail][!hide]" ) { TimeoutAqlTest ( 1s, qs ); } -#if DEBUG -TEST_CASE ( "Segfault Test", "[integration][dummy][!shouldfail][!hide]" ) { +TEST_CASE ( "Segfault Test", "[integration][dummy][!hide][!shouldfail]" ) { ext::vector < std::string > qs = { "execute debug::Random @ int", "execute debug::Segfault" @@ -23,7 +22,7 @@ TEST_CASE ( "Segfault Test", "[integration][dummy][!shouldfail][!hide]" ) { TimeoutAqlTest ( 1s, qs ); } -TEST_CASE ( "Sanitizer Test", "[integration][dummy][!shouldfail]" ) { +TEST_CASE ( "Sanitizer Test", "[integration][dummy][!hide][!shouldfail]" ) { ext::vector < std::string > qs; SECTION ( "asan" ) { qs = { @@ -48,7 +47,6 @@ TEST_CASE ( "Sanitizer Test", "[integration][dummy][!shouldfail]" ) { TimeoutAqlTest ( 1s, qs ); } -#endif TEST_CASE ( "Failed Test", "[integration][dummy][!hide][!shouldfail]" ) { ext::vector < std::string > qs = {