From eaffa79d52da7454044be53d28b525cebdb0093b Mon Sep 17 00:00:00 2001 From: Mark Wielaard Date: Fri, 6 Dec 2019 15:48:00 +0100 Subject: [PATCH] tests: Run strip under testrun in run-debuginfod-find.sh Otherwise strip might run against the system libelf which might be too old or missing. Signed-off-by: Mark Wielaard --- tests/ChangeLog | 4 ++++ tests/run-debuginfod-find.sh | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/ChangeLog b/tests/ChangeLog index fb881e7..ffa4ef5 100644 --- a/tests/ChangeLog +++ b/tests/ChangeLog @@ -1,3 +1,7 @@ +2019-12-05 Mark Wielaard + + * run-findinfod-find.sh: Run strip under testrun. + 2019-12-06 Mark Wielaard * backtrace-data.c (main): Add break after assert. diff --git a/tests/run-debuginfod-find.sh b/tests/run-debuginfod-find.sh index 0ade03b..6f92fbf 100755 --- a/tests/run-debuginfod-find.sh +++ b/tests/run-debuginfod-find.sh @@ -102,7 +102,7 @@ export DEBUGINFOD_TIMEOUT=10 echo "int main() { return 0; }" > ${PWD}/prog.c tempfiles prog.c gcc -g -o prog ${PWD}/prog.c - ${abs_top_builddir}/src/strip -g -f prog.debug ${PWD}/prog +testrun ${abs_top_builddir}/src/strip -g -f prog.debug ${PWD}/prog BUILDID=`env LD_LIBRARY_PATH=$ldpath ${abs_builddir}/../src/readelf \ -a prog | grep 'Build ID' | cut -d ' ' -f 7` -- 2.7.4