Fix two bugs in the base Pintos code:
[pintos-anon] / src / tests / threads / mlfqs-block.c
index 93ed5ec3bc7427cc21121121f59eb9f44d115c93..6d4992da31866946e9d39e427f613d376616dc14 100644 (file)
@@ -7,7 +7,7 @@
    seconds (until the main thread releases it).  If recent_cpu
    decays properly while the "block" thread sleeps, then the
    block thread should be immediately scheduled when the main
-   thread releases the lock,. */
+   thread releases the lock. */
 
 #include <stdio.h>
 #include "tests/threads/tests.h"
@@ -25,7 +25,7 @@ test_mlfqs_block (void)
   int64_t start_time;
   struct lock lock;
   
-  ASSERT (enable_mlfqs);
+  ASSERT (thread_mlfqs);
 
   msg ("Main thread acquiring lock.");
   lock_init (&lock);