qa: rfork(RFNAMEG) on tests that are going to rfork(RFNOMNT) later
This commit is contained in:
@ -23,6 +23,7 @@ main(void)
|
|||||||
{
|
{
|
||||||
int pid;
|
int pid;
|
||||||
|
|
||||||
|
rfork(RFNAMEG);
|
||||||
pid = getmainpid(); // this comes from exec() syscall
|
pid = getmainpid(); // this comes from exec() syscall
|
||||||
|
|
||||||
if(getpid() != pid){
|
if(getpid() != pid){
|
||||||
|
@ -24,6 +24,7 @@ main(void)
|
|||||||
int ppid;
|
int ppid;
|
||||||
Waitmsg *w;
|
Waitmsg *w;
|
||||||
|
|
||||||
|
rfork(RFNAMEG);
|
||||||
if(rfork(RFPROC) == 0){
|
if(rfork(RFPROC) == 0){
|
||||||
ppid = getmainpid(); // this comes from exec() syscall
|
ppid = getmainpid(); // this comes from exec() syscall
|
||||||
|
|
||||||
|
@ -28,8 +28,16 @@ main(void)
|
|||||||
char *msg;
|
char *msg;
|
||||||
|
|
||||||
start = sys_remove("#c/time");
|
start = sys_remove("#c/time");
|
||||||
|
if (start == -1){
|
||||||
|
print("FAIL: start: remove #c/time: %r");
|
||||||
|
exits("FAIL");
|
||||||
|
}
|
||||||
sleep(1);
|
sleep(1);
|
||||||
end = sys_remove("#c/time");
|
end = sys_remove("#c/time");
|
||||||
|
if (end == -1){
|
||||||
|
print("end: start: remove #c/time: %r");
|
||||||
|
exits("FAIL");
|
||||||
|
}
|
||||||
|
|
||||||
if (end <= start)
|
if (end <= start)
|
||||||
ret = 1;
|
ret = 1;
|
||||||
|
Reference in New Issue
Block a user