X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Ftests%2Fthreads%2Fpriority-donate-multiple.c;h=e1bccbdb4b567baef5c1767173ff9271aeda74c9;hb=fd36e1fee6a7f98bfbc13aa20f0ee7d3aeab72ef;hp=69056914306bdede6f7c53047adfdb33d3ce706f;hpb=94ef10ad53439c273d7c1e7397223c1cbd41f1f1;p=pintos-anon diff --git a/src/tests/threads/priority-donate-multiple.c b/src/tests/threads/priority-donate-multiple.c index 6905691..e1bccbd 100644 --- a/src/tests/threads/priority-donate-multiple.c +++ b/src/tests/threads/priority-donate-multiple.c @@ -35,18 +35,18 @@ test_priority_donate_multiple (void) lock_acquire (&a); lock_acquire (&b); - thread_create ("a", PRI_DEFAULT - 1, a_thread_func, &a); + thread_create ("a", PRI_DEFAULT + 1, a_thread_func, &a); msg ("Main thread should have priority %d. Actual priority: %d.", - PRI_DEFAULT - 1, thread_get_priority ()); + PRI_DEFAULT + 1, thread_get_priority ()); - thread_create ("b", PRI_DEFAULT - 2, b_thread_func, &b); + thread_create ("b", PRI_DEFAULT + 2, b_thread_func, &b); msg ("Main thread should have priority %d. Actual priority: %d.", - PRI_DEFAULT - 2, thread_get_priority ()); + PRI_DEFAULT + 2, thread_get_priority ()); lock_release (&b); msg ("Thread b should have just finished."); msg ("Main thread should have priority %d. Actual priority: %d.", - PRI_DEFAULT - 1, thread_get_priority ()); + PRI_DEFAULT + 1, thread_get_priority ()); lock_release (&a); msg ("Thread a should have just finished.");