X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=grading%2Fthreads%2Fpriority-preempt.c;fp=grading%2Fthreads%2Fpriority-preempt.c;h=8953748afb6ec8fefd35bba2bc481ede0eb60c78;hb=59385cfe7f0fc5a66dfc1da7c2e5b817edbcae65;hp=1e2a2685872735d7bc02414ac5ed8e0114e2dbc6;hpb=78ee2ff83ef8787d0cfd74dafaca125c523ea0d0;p=pintos-anon diff --git a/grading/threads/priority-preempt.c b/grading/threads/priority-preempt.c index 1e2a268..8953748 100644 --- a/grading/threads/priority-preempt.c +++ b/grading/threads/priority-preempt.c @@ -6,10 +6,6 @@ , Yu Ping Hu . Modified by arens. */ -#ifdef MLFQS -#error This test not applicable with MLFQS enabled. -#endif - #include "threads/test.h" #include #include "threads/synch.h" @@ -20,6 +16,9 @@ static void test_preempt (void); void test (void) { + /* This test does not work with the MLFQS. */ + ASSERT (!enable_mlfqs); + /* Make sure our priority is the default. */ ASSERT (thread_get_priority () == PRI_DEFAULT);