diff --git a/qa/kern/getpid.c b/qa/kern/getpid.c index 3965f53..50e53b2 100644 --- a/qa/kern/getpid.c +++ b/qa/kern/getpid.c @@ -23,6 +23,7 @@ main(void) { int pid; + rfork(RFNAMEG); pid = getmainpid(); // this comes from exec() syscall if(getpid() != pid){ diff --git a/qa/kern/getppid.c b/qa/kern/getppid.c index 4d92eed..e6b4142 100644 --- a/qa/kern/getppid.c +++ b/qa/kern/getppid.c @@ -24,6 +24,7 @@ main(void) int ppid; Waitmsg *w; + rfork(RFNAMEG); if(rfork(RFPROC) == 0){ ppid = getmainpid(); // this comes from exec() syscall diff --git a/qa/lib/c/asmscall.c b/qa/lib/c/asmscall.c index 4aacda4..262ae3a 100644 --- a/qa/lib/c/asmscall.c +++ b/qa/lib/c/asmscall.c @@ -28,8 +28,16 @@ main(void) char *msg; start = sys_remove("#c/time"); + if (start == -1){ + print("FAIL: start: remove #c/time: %r"); + exits("FAIL"); + } sleep(1); end = sys_remove("#c/time"); + if (end == -1){ + print("end: start: remove #c/time: %r"); + exits("FAIL"); + } if (end <= start) ret = 1;