summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrank Ch. Eigler <fche@redhat.com>2020-01-20 15:37:33 -0500
committerFrank Ch. Eigler <fche@redhat.com>2020-01-20 21:49:07 -0500
commit0bf657f701d4d07c712c60c800c54acf8b5855a1 (patch)
treed62ca96dbbbb61f977eff34916467aaa1ce3df8e
parentc351734f4feff176b3e0ca8fbbc8353053c3ab6d (diff)
downloadelfutils-0bf657f701d4d07c712c60c800c54acf8b5855a1.tar.gz
PR25394 cont'd: debuginfod testsuite fix for -USR1 timing
If a SIGUSR1 is sent before the initial traversal, it no longer results in an extra traversal. That's a sensible effect. The test case just needs to wait before the kill -USR1.
-rwxr-xr-xtests/run-debuginfod-find.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/run-debuginfod-find.sh b/tests/run-debuginfod-find.sh
index 33bbd1a6..83ab3388 100755
--- a/tests/run-debuginfod-find.sh
+++ b/tests/run-debuginfod-find.sh
@@ -113,6 +113,7 @@ 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`
+wait_ready $PORT1 'thread_work_total{role="traverse"}' 1
mv prog F
mv prog.debug F
kill -USR1 $PID1