Skip to content

Commit

Permalink
Reduce flakiness in test-fork
Browse files Browse the repository at this point in the history
  • Loading branch information
allanlw committed Jul 30, 2017
1 parent 4b53a67 commit c872ec8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions userland/test-fork/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ int test_fork() {
DEBUG("Fork failed!");
exit();
} else if (ret == 0) {
/* Temporary fix to flakiness in this test */
nanosleep(1000);
++depth;
char child_msg[] = "Child, depth 0";
child_msg[sizeof(child_msg)-2] = '0' + depth;
Expand Down

0 comments on commit c872ec8

Please sign in to comment.