From 0bf657f701d4d07c712c60c800c54acf8b5855a1 Mon Sep 17 00:00:00 2001 From: "Frank Ch. Eigler" Date: Mon, 20 Jan 2020 15:37:33 -0500 Subject: [PATCH] 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. --- tests/run-debuginfod-find.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/run-debuginfod-find.sh b/tests/run-debuginfod-find.sh index 33bbd1a6d..83ab3388f 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 -- 2.47.3