Commit fd92f1ab authored by Paul's avatar Paul
Browse files

Add a message when there is no coredump

parent 66e7013e
...@@ -32,6 +32,8 @@ function(add_test_command NAME EXE) ...@@ -32,6 +32,8 @@ function(add_test_command NAME EXE)
if(NOT RESULT EQUAL 0) if(NOT RESULT EQUAL 0)
if(EXISTS core) if(EXISTS core)
execute_process(COMMAND gdb $<TARGET_FILE:${EXE}> core -batch -ex bt) execute_process(COMMAND gdb $<TARGET_FILE:${EXE}> core -batch -ex bt)
else()
message(\"No core dump\")
endif() endif()
message(FATAL_ERROR \"Test failed\") message(FATAL_ERROR \"Test failed\")
endif() endif()
......
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