X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Ftests%2Fthreads%2Fpriority-condvar.c;h=c1efb1bdee871759fb05b3ca5267bf24f7cd0a98;hb=919347c164606c3f1544b2e8bd62f505aeda80a1;hp=51008abdb71d9e61f34a8757c477fe59d7d1981a;hpb=0d095b17daaed97df1943ac031058b428ad3f5fa;p=pintos-anon diff --git a/src/tests/threads/priority-condvar.c b/src/tests/threads/priority-condvar.c index 51008ab..c1efb1b 100644 --- a/src/tests/threads/priority-condvar.c +++ b/src/tests/threads/priority-condvar.c @@ -19,15 +19,15 @@ test_priority_condvar (void) int i; /* This test does not work with the MLFQS. */ - ASSERT (!enable_mlfqs); + ASSERT (!thread_mlfqs); lock_init (&lock); cond_init (&condition); - thread_set_priority (PRI_MAX); + thread_set_priority (PRI_MIN); for (i = 0; i < 10; i++) { - int priority = (i + 7) % 10 + PRI_DEFAULT + 1; + int priority = PRI_DEFAULT - (i + 7) % 10 - 1; char name[16]; snprintf (name, sizeof name, "priority %d", priority); thread_create (name, priority, priority_condvar_thread, NULL);