X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?p=pintos-anon;a=blobdiff_plain;f=grading%2Fthreads%2Fpriority-fifo.c;h=01cc7a7737071f2878c818aad360bf6948d700e5;hp=6f8fa9b73a21eaff7c16e6a43690f67ab184a0d2;hb=59385cfe7f0fc5a66dfc1da7c2e5b817edbcae65;hpb=78ee2ff83ef8787d0cfd74dafaca125c523ea0d0 diff --git a/grading/threads/priority-fifo.c b/grading/threads/priority-fifo.c index 6f8fa9b..01cc7a7 100644 --- a/grading/threads/priority-fifo.c +++ b/grading/threads/priority-fifo.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 "devices/timer.h" @@ -22,6 +18,9 @@ static void test_fifo (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);