Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
MIGraphX
Commits
fd92f1ab
Commit
fd92f1ab
authored
Jun 08, 2018
by
Paul
Browse files
Add a message when there is no coredump
parent
66e7013e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
test/CMakeLists.txt
test/CMakeLists.txt
+2
-0
No files found.
test/CMakeLists.txt
View file @
fd92f1ab
...
@@ -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()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment