X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Ftests%2Fthreads%2Fpriority-donate-one.c;h=3189f3a0b94a030290b286ea4a78623ddd5ea2e3;hb=d4c30c6a386fe850e7eed1025e459fbc82a0b6e2;hp=603a7fe45a9b3469133f21aef75041d596a2981a;hpb=0d095b17daaed97df1943ac031058b428ad3f5fa;p=pintos-anon diff --git a/src/tests/threads/priority-donate-one.c b/src/tests/threads/priority-donate-one.c index 603a7fe..3189f3a 100644 --- a/src/tests/threads/priority-donate-one.c +++ b/src/tests/threads/priority-donate-one.c @@ -24,19 +24,19 @@ test_priority_donate_one (void) struct lock lock; /* This test does not work with the MLFQS. */ - ASSERT (!enable_mlfqs); + ASSERT (!thread_mlfqs); /* Make sure our priority is the default. */ ASSERT (thread_get_priority () == PRI_DEFAULT); lock_init (&lock); lock_acquire (&lock); - thread_create ("acquire1", PRI_DEFAULT - 1, acquire1_thread_func, &lock); + thread_create ("acquire1", PRI_DEFAULT + 1, acquire1_thread_func, &lock); msg ("This thread should have priority %d. Actual priority: %d.", - PRI_DEFAULT - 1, thread_get_priority ()); - thread_create ("acquire2", PRI_DEFAULT - 2, acquire2_thread_func, &lock); + PRI_DEFAULT + 1, thread_get_priority ()); + thread_create ("acquire2", PRI_DEFAULT + 2, acquire2_thread_func, &lock); msg ("This thread should have priority %d. Actual priority: %d.", - PRI_DEFAULT - 2, thread_get_priority ()); + PRI_DEFAULT + 2, thread_get_priority ()); lock_release (&lock); msg ("acquire2, acquire1 must already have finished, in that order."); msg ("This should be the last line before finishing this test.");