summaryrefslogtreecommitdiffstats
path: root/test/unit/fork.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit/fork.c')
-rw-r--r--test/unit/fork.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/test/unit/fork.c b/test/unit/fork.c
index 58091c6..4880328 100644
--- a/test/unit/fork.c
+++ b/test/unit/fork.c
@@ -4,8 +4,7 @@
#include <sys/wait.h>
#endif
-TEST_BEGIN(test_fork)
-{
+TEST_BEGIN(test_fork) {
#ifndef _WIN32
void *p;
pid_t pid;
@@ -32,8 +31,9 @@ TEST_BEGIN(test_fork)
/* Parent. */
while (true) {
- if (waitpid(pid, &status, 0) == -1)
+ if (waitpid(pid, &status, 0) == -1) {
test_fail("Unexpected waitpid() failure");
+ }
if (WIFSIGNALED(status)) {
test_fail("Unexpected child termination due to "
"signal %d", WTERMSIG(status));
@@ -56,8 +56,7 @@ TEST_BEGIN(test_fork)
TEST_END
int
-main(void)
-{
+main(void) {
return (test(
test_fork));
}