From: Ben Pfaff Date: Wed, 20 Oct 2004 18:45:21 +0000 (+0000) Subject: Fix donate-multiple test. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0c2b4f1514d80bb96902348c9e1d2f87b3dd2bf4;p=pintos-anon Fix donate-multiple test. --- diff --git a/grading/threads/priority-donate-multiple.c b/grading/threads/priority-donate-multiple.c index 971caf2..07d9684 100644 --- a/grading/threads/priority-donate-multiple.c +++ b/grading/threads/priority-donate-multiple.c @@ -72,7 +72,7 @@ a_thread_func (void *lock_) lock_acquire (lock); printf (" 7. Thread a acquired lock a.\n"); lock_release (lock); - printf (" 8. Thread b finished.\n"); + printf (" 8. Thread a finished.\n"); } static void diff --git a/grading/threads/priority-donate-multiple.exp b/grading/threads/priority-donate-multiple.exp index 0afb6ae..b92bdee 100644 --- a/grading/threads/priority-donate-multiple.exp +++ b/grading/threads/priority-donate-multiple.exp @@ -3,11 +3,11 @@ If the statements printed below are all true, you pass. 1. Main thread should have priority 30. Actual priority: 30. 2. Main thread should have priority 31. Actual priority: 31. 3. Thread b acquired lock b. - 5. Thread b should have just finished. 4. Thread b finished. - 6. Main thread should have priority 30. Actual priority: 31. + 5. Thread b should have just finished. + 6. Main thread should have priority 30. Actual priority: 30. 7. Thread a acquired lock a. - 8. Thread b finished. + 8. Thread a finished. 9. Thread a should have just finished. 10. Main thread should have priority 29. Actual priority: 29. Multiple priority priority donation test finished.