[PATCH] tests: Run strip under testrun in run-debuginfod-find.sh

Mark Wielaard mark@klomp.org
Fri Dec 6 14:49:00 GMT 2019


Otherwise strip might run against the system libelf which might be too
old or missing.

Signed-off-by: Mark Wielaard <mark@klomp.org>
---
 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 fb881e76..ffa4ef51 100644
--- a/tests/ChangeLog
+++ b/tests/ChangeLog
@@ -1,3 +1,7 @@
+2019-12-05  Mark Wielaard  <mark@klomp.org>
+
+	* run-findinfod-find.sh: Run strip under testrun.
+
 2019-12-06  Mark Wielaard  <mark@klomp.org>
 
 	* backtrace-data.c (main): Add break after assert.
diff --git a/tests/run-debuginfod-find.sh b/tests/run-debuginfod-find.sh
index 0ade03b7..6f92fbf1 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.20.1



More information about the Elfutils-devel mailing list