From: Frank Ch. Eigler Date: Mon, 20 Jan 2020 20:37:33 +0000 (-0500) Subject: PR25394 cont'd: debuginfod testsuite fix for -USR1 timing X-Git-Tag: elfutils-0.179~49 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0bf657f701d4d07c712c60c800c54acf8b5855a1;p=platform%2Fupstream%2Felfutils.git 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. --- diff --git a/tests/run-debuginfod-find.sh b/tests/run-debuginfod-find.sh index 33bbd1a..83ab338 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