[vlc-commits] test: make_check_wrapper: fix gdb exec path
Thomas Guillem
git at videolan.org
Fri Feb 8 08:49:53 CET 2019
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Fri Feb 8 08:49:43 2019 +0100| [500084eee99afc07dc9e8e56bef29e41f40ffab7] | committer: Thomas Guillem
test: make_check_wrapper: fix gdb exec path
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=500084eee99afc07dc9e8e56bef29e41f40ffab7
---
test/make_check_wrapper.sh | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/test/make_check_wrapper.sh b/test/make_check_wrapper.sh
index 8ac3acf996..9121d2aacf 100755
--- a/test/make_check_wrapper.sh
+++ b/test/make_check_wrapper.sh
@@ -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"
More information about the vlc-commits
mailing list