kern: fix compilation warning; raise qa timeouts

This commit is contained in:
2020-02-17 01:07:15 +01:00
parent 7385e37b13
commit bb2a39cc74
21 changed files with 48 additions and 48 deletions

View File

@ -210,7 +210,7 @@ main(int argc, char* argv[])
}
average = average / NPROC / (1000 * 1000);
if(average > 900 && average < 1300) /* 30% error on timeout is acceptable */
if(average > 900 && average < 3000)
{
print("PASS\n");
exits("PASS");

View File

@ -111,7 +111,7 @@ waiter(int index)
if(verbose)
print("waiter %d: got the qlock in %lld ms\n", getpid(), (end - start) / (1000*1000));
qunlock(&afterAWhile);
if((end - start) / (1000*1000) > 1500)
if((end - start) / (1000*1000) > 3000)
postnote(PNGROUP, getpid(), smprint("fail: waiter %d got the qlock after %lld ms", getpid(), (end - start) / (1000*1000)));
} else {
if(verbose)

View File

@ -208,7 +208,7 @@ main(int argc, char* argv[])
}
average = average / NPROC / (1000 * 1000);
if(average < 1000) /* we asked for 1ms... we are dumb, after all */
if(average < 3000) /* we asked for 1ms... we are dumb, after all */
{
print("PASS\n");
exits("PASS");

View File

@ -210,7 +210,7 @@ main(int argc, char* argv[])
}
average = average / NPROC / (1000 * 1000);
if(average > 900 && average < 1300) /* 30% error on timeout is acceptable */
if(average > 900 && average < 3000)
{
print("PASS\n");
exits("PASS");

View File

@ -112,7 +112,7 @@ waiter(int index)
if(verbose)
print("reader %d: got the rlock in %lld ms\n", getpid(), (end - start) / (1000*1000));
runlock(&afterAWhile);
if((end - start) / (1000*1000) > 2000)
if((end - start) / (1000*1000) > 3000)
postnote(PNGROUP, getpid(), smprint("fail: reader %d got the rlock after %lld ms", getpid(), (end - start) / (1000*1000)));
} else {
if(verbose)
@ -127,7 +127,7 @@ waiter(int index)
rwakeup(&rCompleted);
qunlock(&rl);
return (end - start) / (1000*1000) < 2000 ? nil : "FAIL";
return (end - start) / (1000*1000) < 3000 ? nil : "FAIL";
}
void

View File

@ -214,7 +214,7 @@ main(int argc, char* argv[])
}
average = average / NPROC / (1000 * 1000);
if(average < 800) /* we asked for 1ms... we are dumb, after all */
if(average < 2000) /* we asked for 1ms... we are dumb, after all */
{
print("PASS\n");
exits("PASS");

View File

@ -209,7 +209,7 @@ main(int argc, char* argv[])
}
average = average / NPROC / (1000 * 1000);
if(average > 900 && average < 1300) /* 30% error on timeout is acceptable */
if(average > 900 && average < 3000)
{
print("PASS\n");
exits("PASS");

View File

@ -197,7 +197,7 @@ main(int argc, char* argv[])
qunlock(&rl);
/* wait for ~1 sec */
do { sleep(100); } while(nsec() < end);
do { sleep(1000); } while(nsec() < end);
qlock(&l);
awakened = rwakeupall(&afterAWhile);

View File

@ -215,7 +215,7 @@ main(int argc, char* argv[])
}
average = average / NPROC / (1000 * 1000);
if(average < 1000) /* we asked for 1ms... we are dumb, after all */
if(average < 2000) /* we asked for 1ms... we are dumb, after all */
{
print("PASS\n");
exits("PASS");

View File

@ -210,7 +210,7 @@ main(int argc, char* argv[])
}
average = average / NPROC / (1000 * 1000);
if(average > 900 && average < 1300) /* 30% error on timeout is acceptable */
if(average > 900 && average < 3000)
{
print("PASS\n");
exits("PASS");

View File

@ -210,7 +210,7 @@ main(int argc, char* argv[])
}
average = average / NPROC / (1000 * 1000);
if(average < 1000) /* we asked for 1ms... we are dumb, after all */
if(average < 2000) /* we asked for 1ms... we are dumb, after all */
{
print("PASS\n");
exits("PASS");