aboutsummaryrefslogtreecommitdiffstats
path: root/tests/fork.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2023-06-25 15:20:06 +0200
committerMattias Andrée <maandree@kth.se>2023-06-25 15:20:06 +0200
commit665a51ce1927be44e14524491e10bb45f089d79c (patch)
treeb7d7804ccdef649150e362356fc11cbaf9616a2e /tests/fork.c
parentAdd -a and trivial improvements (diff)
downloadsctrace-665a51ce1927be44e14524491e10bb45f089d79c.tar.gz
sctrace-665a51ce1927be44e14524491e10bb45f089d79c.tar.bz2
sctrace-665a51ce1927be44e14524491e10bb45f089d79c.tar.xz
Add more test cases
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--tests/fork.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/tests/fork.c b/tests/fork.c
index 993e0d4..40eed7d 100644
--- a/tests/fork.c
+++ b/tests/fork.c
@@ -1,17 +1,8 @@
-#include <time.h>
#include <unistd.h>
int
main(void)
{
- struct timespec ts = {0, 100000000L};
- switch (fork()) {
- case -1:
- return -1;
- case 0:
- return 2;
- default:
- nanosleep(&ts, NULL);
- return 1;
- }
+ fork();
+ return 0;
}