]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
tests/run-stackprof-system-gprof.sh: add arch gating check users/serhei/try-eu-stackprof
authorSerhei Makarov <serhei@serhei.io>
Mon, 22 Jun 2026 21:38:08 +0000 (17:38 -0400)
committerSerhei Makarov <serhei@serhei.io>
Mon, 22 Jun 2026 21:38:08 +0000 (17:38 -0400)
tests/run-stackprof-system-gprof.sh

index 3c19499df076b9ea9234c2e4873da877dbb5f08e..b9dc839f7fb6f80560f64686edf52e02d96dd74b 100755 (executable)
@@ -31,7 +31,7 @@ tempfiles test.out gmon.*
 # run systemwide scan, no gprof output
 testrun timeout -p --kill-after=5 10 ${abs_top_builddir}/src/stackprof -v 2>&1 | tee test.out
 grep "^perf_event_attr configuration" test.out
-grep "Starting stack profile collection systemwide" test.out
+grep "Starting stack profile collection systemwide" test.out || (grep "ERROR: Unsupported architecture" test.out && echo "unsupported arch" && exit 77)
 grep -E "^[0-9]+ " test.out # -- pid / sample counts entries
 
 # run systemwide scan again, with gprof output