Improve comments.
[pintos-anon] / src / tests / threads / priority-condvar.c
index 51008abdb71d9e61f34a8757c477fe59d7d1981a..c1efb1bdee871759fb05b3ca5267bf24f7cd0a98 100644 (file)
@@ -19,15 +19,15 @@ test_priority_condvar (void)
   int i;
   
   /* This test does not work with the MLFQS. */
-  ASSERT (!enable_mlfqs);
+  ASSERT (!thread_mlfqs);
 
   lock_init (&lock);
   cond_init (&condition);
 
-  thread_set_priority (PRI_MAX);
+  thread_set_priority (PRI_MIN);
   for (i = 0; i < 10; i++) 
     {
-      int priority = (i + 7) % 10 + PRI_DEFAULT + 1;
+      int priority = PRI_DEFAULT - (i + 7) % 10 - 1;
       char name[16];
       snprintf (name, sizeof name, "priority %d", priority);
       thread_create (name, priority, priority_condvar_thread, NULL);