10.12., 9:00 - 11:00: Due to updates GitLab may be unavailable for some minutes between 09:00 and 11:00.

Commit 31e64c7d authored by Philipp Samfass's avatar Philipp Samfass

deactivate ping pong test in release mode as it causes errors in valgrind due...

deactivate ping pong test in release mode as it causes errors in valgrind due to compiling exahype::records::Vertex twice
parent 0aaf8404
......@@ -284,8 +284,8 @@ else ifeq ($(call tolower,$(COMPILER)),gnu)
COMPILER_CFLAGS += -p -pg -g3 -O3
COMPILER_LFLAGS += -p -pg
else
COMPILER_CFLAGS += -O3
FCOMPILER_CFLAGS += -O3
COMPILER_CFLAGS += -O3
FCOMPILER_CFLAGS += -O3
endif
ifeq ($(call tolower,$(SHAREDMEM)),tbb)
......
......@@ -11,12 +11,7 @@
* For the full license text, see LICENSE.txt
**/
/* This is a hack to enable PingPongTests also when built in Release mode:
* Enable Assertions for this compile context (=this cpp file) only.
*/
#ifndef Asserts
#define Asserts
#endif
#ifdef Asserts
#include "tarch/logging/Log.h"
#include "tarch/tests/TestCaseRegistry.h"
......@@ -181,3 +176,4 @@ int exahype::pingPongTest() {
#endif
return correct ? EXIT_SUCCESS : -1;
}
#endif
......@@ -112,9 +112,12 @@ int exahype::main(int argc, char** argv) {
return sharedMemorySetup;
}
//Can only run in Asserts mode as otherwise two versions of exahype::records::Vertex would need to be compiled which results in undefined behaviour/errors in valgrind
#ifdef Asserts
if (runPingPong) {
return pingPongTest();
}
#endif
if (runTests) {
//
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment