# 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