From 345f710e1133c98951328d3e986f7601a0e533d5 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Wed, 20 Oct 2004 18:45:21 +0000 Subject: [PATCH] Fix donate-multiple test. --- grading/threads/priority-donate-multiple.c | 2 +- grading/threads/priority-donate-multiple.exp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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. -- 2.30.2