Skip to content

Commit

Permalink
Fix issue where testcase process would throw signal 4
Browse files Browse the repository at this point in the history
  • Loading branch information
SanderMertens committed Oct 30, 2023
1 parent 62f2355 commit 7131e55
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions drivers/test/src/test.c
Original file line number Diff line number Diff line change
Expand Up @@ -253,9 +253,16 @@ void* bake_test_run_suite_range(
ut_log(
"#[red]FAIL#[reset]: %s segfaulted\n", test_name);
} else {
/* Signal 4 seems to get thrown every now and then when
* trying to create lots of processes. Retry a few times
* before actually failing the test. */
if (sig == 4) {
retry_count ++;
if (retry_count < 5) {
/* Don't retry too fast in case OS resources are
* limited. */
ut_sleep(0, 100 * 1000 * 1000);
ut_log("#[grey]retrying after sig 4...\n");
goto retry;
} else {
ut_log("#[red]retried 5 times after sig 4\n");
Expand Down

0 comments on commit 7131e55

Please sign in to comment.