mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-10 09:26:10 +00:00
lib/igt_core.c: Flag the test as failing after a segfault
fatal_signal_handler() was trapping fatal errors but not flagging the test as failing or setting an exit code. The result was that the test would return Ok or Skipped depending on what the other subtests did even though one of the subtests had segfaulted. Signed-off-by: Derek Morton <derek.j.morton@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
parent
95019c2a3c
commit
f49723872b
@ -1438,8 +1438,15 @@ static void fatal_sig_handler(int sig)
|
||||
igt_assert_eq(write(STDERR_FILENO, ".\n", 2), 2);
|
||||
}
|
||||
|
||||
if (in_subtest && crash_signal(sig))
|
||||
if (in_subtest && crash_signal(sig)) {
|
||||
/* Linux standard to return exit code as 128 + signal */
|
||||
if (!failed_one)
|
||||
igt_exitcode = 128 + sig;
|
||||
|
||||
failed_one = true;
|
||||
|
||||
exit_subtest("CRASH");
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user