X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=src%2Ftests%2Fthreads%2Fmlfqs-fair.c;h=3b1bea5a177301abb2d6b28b9887a3baf2a1a1ae;hb=e8fe9231ac87ff242138f08d0afa217f2f76bf76;hp=30282c36e32d15b0da44d074aa99093c69d3815c;hpb=94ef10ad53439c273d7c1e7397223c1cbd41f1f1;p=pintos-anon diff --git a/src/tests/threads/mlfqs-fair.c b/src/tests/threads/mlfqs-fair.c index 30282c3..3b1bea5 100644 --- a/src/tests/threads/mlfqs-fair.c +++ b/src/tests/threads/mlfqs-fair.c @@ -2,7 +2,8 @@ The "fair" tests run either 2 or 20 threads all niced to 0. The threads should all receive approximately the same number - of ticks. + of ticks. Each test runs for 30 seconds, so the ticks should + also sum to approximately 30 * 100 == 3000 ticks. The mlfqs-nice-2 test runs 2 threads, one with nice 0, the other with nice 5, which should receive 1,904 and 1,096 ticks, @@ -69,7 +70,7 @@ test_mlfqs_fair (int thread_cnt, int nice_min, int nice_step) int nice; int i; - ASSERT (enable_mlfqs); + ASSERT (thread_mlfqs); ASSERT (thread_cnt <= MAX_THREAD_CNT); ASSERT (nice_min >= -10); ASSERT (nice_step >= 0);