@@ -4,7 +4,9 @@
# anything other than Passed/Skipped/Disabled (Failed, Timeout, Exception, Not Run) is a FAIL
# test_scheduler_mix hangs intermittently on every architecture
# https://github.com/uxlfoundation/oneTBB/issues/1281
-ctest -E '^test_scheduler_mix$' | awk '/Test +#[0-9]+:/ {
+# --timeout makes any other hung test a single FAIL; without it ptest-runner
+# kills the whole suite after 450s without output
+ctest --timeout 300 -E '^test_scheduler_mix$' | awk '/Test +#[0-9]+:/ {
if ($0 ~ /Passed/) res = "PASS"
else if ($0 ~ /Skipped|Disabled/) res = "SKIP"
else res = "FAIL"
run-ptest prints one line per finished ctest test, so a single hung test leaves ptest-runner without output until its 450 s timeout. ptest-runner then kills the whole suite and every remaining result is lost. This happened with test_resumable_tasks on qemux86-64: 28 tests had passed, and the other 113 never ran. Pass --timeout 300 to ctest so that a hung test is reported as a single FAIL and the rest of the suite still runs. The whole suite normally finishes in about 380 s on qemux86-64. Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com> --- meta-oe/recipes-support/tbb/files/run-ptest | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)