diff options
Diffstat (limited to 'src/user/app/init/tests/pipe.c')
-rw-r--r-- | src/user/app/init/tests/pipe.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/user/app/init/tests/pipe.c b/src/user/app/init/tests/pipe.c index f7005f8..d6e954a 100644 --- a/src/user/app/init/tests/pipe.c +++ b/src/user/app/init/tests/pipe.c @@ -28,7 +28,7 @@ void test_pipe(void) { ret = _syscall_write(ends[1], pipe_msgs[1], 5, -1); assert(ret == 5); - _syscall_exit(0); + exit(0); } else { assert(_syscall_read(ends[1], buf, 16, 0) < 0); assert(_syscall_write(ends[0], buf, 16, 0) < 0); @@ -56,7 +56,7 @@ void test_pipe(void) { if (!fork()) { close(ends[1]); assert(_syscall_read(ends[0], buf, 16, 0) < 0); - _syscall_exit(0); + exit(0); } } close(ends[1]); @@ -69,7 +69,7 @@ void test_pipe(void) { if (!fork()) { close(ends[0]); assert(_syscall_write(ends[1], buf, 16, 0) < 0); - _syscall_exit(0); + exit(0); } } close(ends[0]); @@ -83,7 +83,7 @@ void test_pipe(void) { for (int i = 0; i < 16; i++) { if (!fork()) { assert(_syscall_write(ends[1], pipe_msgs[0], 5, -1) == 5); - _syscall_exit(0); + exit(0); } } close(ends[1]); @@ -100,7 +100,7 @@ void test_pipe(void) { memset(buf, 0, sizeof buf); assert(_syscall_read(ends[0], buf, 5, -1) == 5); assert(!memcmp(buf, pipe_msgs[1], 5)); - _syscall_exit(0); + exit(0); } } close(ends[0]); |