X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Ftests%2Fthreads%2Fpriority-donate-one.c;h=2a67b52e0960f99bbfba53ba757f8c2967b17cb4;hb=225e6b43b823eec0f3eef093f697c0b62538344f;hp=603a7fe45a9b3469133f21aef75041d596a2981a;hpb=c51576b5aedc01da14c5f29527884f4bea49d544;p=pintos-anon diff --git a/src/tests/threads/priority-donate-one.c b/src/tests/threads/priority-donate-one.c index 603a7fe..2a67b52 100644 --- a/src/tests/threads/priority-donate-one.c +++ b/src/tests/threads/priority-donate-one.c @@ -31,12 +31,12 @@ test_priority_donate_one (void) 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.");