X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=src%2Ftests%2Fthreads%2Fp1-3.c;h=6c16023c61b9efa9eb03366b4cdb8b415190edee;hb=2d20cd50c41c87a90d49e4b7ace3d18b8fb34f23;hp=3b488363efb75d629440c1553a5bfc4559017086;hpb=42e7e6f07b1a0fbd3d887419d37cf5d344bcc6f7;p=pintos-anon diff --git a/src/tests/threads/p1-3.c b/src/tests/threads/p1-3.c index 3b48836..6c16023 100644 --- a/src/tests/threads/p1-3.c +++ b/src/tests/threads/p1-3.c @@ -6,6 +6,10 @@ , 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" @@ -18,7 +22,7 @@ static void test_donate_return (void); void test (void) { - /* Make sure our prority is the default. */ + /* Make sure our priority is the default. */ ASSERT (thread_get_priority () == PRI_DEFAULT); test_preempt (); @@ -50,7 +54,7 @@ test_fifo (void) "If the order varies then there is a bug.\n"); thread_set_priority (PRI_DEFAULT + 2); - for (i = 0; i < 5; i++) + for (i = 0; i < 10; i++) { char name[16]; snprintf (name, sizeof name, "%d", i);