test: screen_setup(): Detect spawn failures, usage errors.

This commit is contained in:
Justin M. Keyes
2017-02-22 19:14:06 +01:00
parent d90e5f5260
commit 152921837e
2 changed files with 18 additions and 6 deletions

View File

@@ -207,7 +207,9 @@ local function check_cores(app)
out:write(('\nTests covered by this check: %u\n'):format(tests_skipped + 1))
end
tests_skipped = 0
assert(0 == found_cores)
if found_cores > 0 then
error("crash detected (see above)")
end
end
return {