qa: various fix to tests
This commit is contained in:
@@ -78,6 +78,7 @@ main(void)
|
||||
print("FAIL: rendezvous\n");
|
||||
exits("FAIL");
|
||||
}
|
||||
forgivewkp(wkup);
|
||||
|
||||
/* verify that sleeps are NOT interrupted */
|
||||
fprint(2, "verify that sleeps are NOT interrupted\n", elapsed);
|
||||
@@ -91,6 +92,7 @@ main(void)
|
||||
print("FAIL: sleep\n");
|
||||
exits("FAIL");
|
||||
}
|
||||
forgivewkp(wkup);
|
||||
|
||||
/* verify that semacquires are interrupted */
|
||||
fprint(2, "verify that semacquires are interrupted\n", elapsed);
|
||||
@@ -107,6 +109,7 @@ main(void)
|
||||
print("FAIL: semacquire\n");
|
||||
exits("FAIL");
|
||||
}
|
||||
forgivewkp(wkup);
|
||||
|
||||
/* verify that tsemacquire are NOT interrupted */
|
||||
fprint(2, "verify that tsemacquire are NOT interrupted\n", elapsed);
|
||||
@@ -120,6 +123,7 @@ main(void)
|
||||
print("FAIL: tsemacquire\n");
|
||||
exits("FAIL");
|
||||
}
|
||||
forgivewkp(wkup);
|
||||
|
||||
/* verify that reads are interrupted */
|
||||
fprint(2, "verify that reads are interrupted\n", elapsed);
|
||||
@@ -137,6 +141,7 @@ main(void)
|
||||
print("FAIL: read\n");
|
||||
exits("FAIL");
|
||||
}
|
||||
forgivewkp(wkup);
|
||||
|
||||
/* verify that writes are interrupted */
|
||||
fprint(2, "verify that writes are interrupted\n", elapsed);
|
||||
@@ -154,6 +159,7 @@ main(void)
|
||||
print("FAIL: write\n");
|
||||
exits("FAIL");
|
||||
}
|
||||
forgivewkp(wkup);
|
||||
|
||||
/* do not forgivewkp the awake(100000): the kernel must handle it */
|
||||
print("PASS\n");
|
||||
|
@@ -28,6 +28,7 @@ handler(void *v, char *s)
|
||||
print("PASS\n");
|
||||
exits(nil);
|
||||
}
|
||||
forgivewkp(wakeup);
|
||||
print("FAIL in note handler\n");
|
||||
exits("FAIL");
|
||||
}
|
||||
|
@@ -8,9 +8,6 @@
|
||||
"cp *.rc $JEHANNE/arch/$ARCH/qa/kern/",
|
||||
"cp *.runner $JEHANNE/arch/$ARCH/qa/kern/"
|
||||
],
|
||||
"Disabled": [
|
||||
"fork_chain.c"
|
||||
],
|
||||
"SourceFilesCmd": [
|
||||
"alarm.c",
|
||||
"args.c",
|
||||
@@ -21,6 +18,7 @@
|
||||
"execl.c",
|
||||
"float.c",
|
||||
"fork.c",
|
||||
"fork_chain.c",
|
||||
"frexp.c",
|
||||
"getmainpid.c",
|
||||
"getpid.c",
|
||||
|
@@ -27,6 +27,7 @@ handler(void *v, char *s)
|
||||
int i;
|
||||
if(strcmp(s, "stop") == 0){
|
||||
done = 1;
|
||||
print("stop note received; done = %d\n", done);
|
||||
}else{
|
||||
print("waiting after %s", s);
|
||||
for(i = 0; i < 1000*1000; ++i)
|
||||
@@ -62,6 +63,6 @@ main(int argc, char**argv)
|
||||
print("PASS\n");
|
||||
exits("PASS");
|
||||
}
|
||||
print("%d notes received\n");
|
||||
print("%d notes received\n", waited);
|
||||
exits("FAIL");
|
||||
}
|
||||
|
Reference in New Issue
Block a user