Skip to content

Commit 04d66b2

Browse files
Update compiler-rt/test/profile/Posix/instrprof-fork.c
Co-authored-by: Hubert Tong <[email protected]>
1 parent 8e10f3f commit 04d66b2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

compiler-rt/test/profile/Posix/instrprof-fork.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ int main(void) {
3535
} // |
3636
} // ------------+------------
3737
int status; // 20 10 | 1 0
38-
wait(&status); // (*) the child inherits counter values prior to fork
38+
i = 10;
39+
while (i-- > 0)
40+
wait(&status); // (*) the child inherits counter values prior to fork
3941
return 0; // from the parent in non-continuous mode.
4042
}

0 commit comments

Comments
 (0)