qa: various fix to tests

This commit is contained in:
2017-08-11 02:01:55 +02:00
parent 93dde48355
commit 1c4a04cd30
21 changed files with 253 additions and 60 deletions

View File

@ -73,7 +73,7 @@ handletimeout(void *v, char *s)
if(strcmp(s, "timedout") == 0){
if(verbose)
print("%d: noted: %s\n", getpid(), s);
print("FAIL: timedout\n");
print("FAIL: %s timedout\n", argv0);
exits("FAIL");
}
return 0;
@ -154,11 +154,14 @@ spawnWaiter(int index)
}
void
main(void)
main(int argc, char* argv[])
{
int i;
int64_t average, end;
ARGBEGIN{
}ARGEND;
rfork(RFNOTEG|RFREND);
rStart.l = &rl;
rCompleted.l = &rl;
@ -222,6 +225,6 @@ main(void)
print("PASS\n");
exits("PASS");
}
print("FAIL: average timeout too long %lld ms\n", average);
print("FAIL: %s: average timeout too long %lld ms\n", argv0, average);
exits("FAIL");
}