[vlc-commits] test: make_check_wrapper: fix gdb exec path

Thomas Guillem git at videolan.org
Fri Feb 28 18:43:10 CET 2020


vlc/vlc-3.0 | branch: master | Thomas Guillem <thomas at gllm.fr> | Fri Feb  8 08:49:43 2019 +0100| [3ebba43b7a4a3c2fc67bddb56192deefea3426b6] | committer: Konstantin Pavlov

test: make_check_wrapper: fix gdb exec path

(cherry picked from commit 500084eee99afc07dc9e8e56bef29e41f40ffab7)
Signed-off-by: Konstantin Pavlov <thresh at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=3ebba43b7a4a3c2fc67bddb56192deefea3426b6
---

 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