Clarify that create and remove work on files, not on file descriptors.
[pintos-anon] / src / tests / threads / priority-preempt.c
index 452c6807c25c524d2d1d4de02b29b622baaac4b9..3c3aacbd0336f41fb69d386c9576cb18f07c00ae 100644 (file)
@@ -18,12 +18,12 @@ void
 test_priority_preempt (void) 
 {
   /* This test does not work with the MLFQS. */
-  ASSERT (!enable_mlfqs);
+  ASSERT (!thread_mlfqs);
 
   /* Make sure our priority is the default. */
   ASSERT (thread_get_priority () == PRI_DEFAULT);
 
-  thread_create ("high-priority", PRI_DEFAULT - 1, simple_thread_func, NULL);
+  thread_create ("high-priority", PRI_DEFAULT + 1, simple_thread_func, NULL);
   msg ("The high-priority thread should have already completed.");
 }