X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?p=pintos-anon;a=blobdiff_plain;f=src%2Fthreads%2Ftest.c;h=694ea0b98c1b8706d3afe8cff9864221bf9b2231;hp=627bba5fc2e5109dff8a44b6e1fa99d92e5126fb;hb=59385cfe7f0fc5a66dfc1da7c2e5b817edbcae65;hpb=78ee2ff83ef8787d0cfd74dafaca125c523ea0d0 diff --git a/src/threads/test.c b/src/threads/test.c index 627bba5..694ea0b 100644 --- a/src/threads/test.c +++ b/src/threads/test.c @@ -11,15 +11,14 @@ #include "threads/thread.h" #include "devices/timer.h" -#ifdef MLFQS -#error This test not applicable with MLFQS enabled. -#endif - static void test_sleep (int thread_cnt, int iterations); void test (void) { + /* This test does not work with the MLFQS. */ + ASSERT (!enable_mlfqs); + /* Easy test: 5 threads sleep once each. */ test_sleep (5, 1);