Fix two bugs in the base Pintos code:
[pintos-anon] / src / tests / threads / alarm-wait.c
index 8030d20155d416e2cbb06bb95c8427e56a69cc43..37d3afcea74243abcce4ccde4cb8a3590985c7c6 100644 (file)
@@ -57,7 +57,7 @@ test_sleep (int thread_cnt, int iterations)
   int i;
 
   /* This test does not work with the MLFQS. */
-  ASSERT (!enable_mlfqs);
+  ASSERT (!thread_mlfqs);
 
   msg ("Creating %d threads to sleep %d times each.", thread_cnt, iterations);
   msg ("Thread 0 sleeps 10 ticks each time,");
@@ -145,7 +145,6 @@ sleeper (void *t_)
     {
       int64_t sleep_until = test->start + i * t->duration;
       timer_sleep (sleep_until - timer_ticks ());
-
       lock_acquire (&test->output_lock);
       *test->output_pos++ = t->id;
       lock_release (&test->output_lock);