test: make_check_wrapper: fix gdb exec path

This commit is contained in:
Thomas Guillem 2019-02-08 08:49:43 +01:00
parent 5c243c080c
commit 500084eee9
1 changed files with 6 additions and 1 deletions

View File

@ -23,9 +23,14 @@ for i in $(find -name test-suite.log);do
core_path="$test_path/core"
failing_test=$(sed -n 's/^FAIL \([^ ]\+\) (exit status:.*/\1/p' ${test_path}/test-suite.log)
if [ -f "$core_path" -a ! -z "$failing_test" ];then
if [ -x "$test_path/.libs/$failing_test" ];then
failing_test_path="$test_path/.libs/$failing_test"
else
failing_test_path="$test_path/$failing_test"
fi
echo "Printing core dump:"
echo ""
gdb "$test_path/$failing_test" -c "$core_path" \
gdb "$failing_test_path" -c "$core_path" \
-ex "set pagination off" \
-ex "thread apply all bt" \
-ex "quit"