PR25394 cont'd: debuginfod testsuite fix for -USR1 timing
authorFrank Ch. Eigler <fche@redhat.com>
Mon, 20 Jan 2020 20:37:33 +0000 (15:37 -0500)
committerFrank Ch. Eigler <fche@redhat.com>
Tue, 21 Jan 2020 02:49:07 +0000 (21:49 -0500)
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.

tests/run-debuginfod-find.sh

index 33bbd1a..83ab338 100755 (executable)
@@ -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