Fix two bugs in the base Pintos code:
[pintos-anon] / src / tests / threads / alarm-simultaneous.c
index 7db54181e7042fc6466030f6b3c97080a0e96f82..844eea47f9cb2f4e3120fa68a60c54bb4c6c6c4e 100644 (file)
@@ -15,7 +15,7 @@ static void test_sleep (int thread_cnt, int iterations);
 void
 test_alarm_simultaneous (void) 
 {
-  test_sleep (5, 5);
+  test_sleep (3, 5);
 }
 
 /* Information about the test. */
@@ -37,7 +37,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 ("Each thread sleeps 10 ticks each time.");