projects
/
pintos-anon
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use runtime options instead of conditional compilation for MLFQS,
[pintos-anon]
/
grading
/
threads
/
alarm-multiple.c
diff --git
a/grading/threads/alarm-multiple.c
b/grading/threads/alarm-multiple.c
index 6e7c3d4079adc638ef593a35f437a7bf2ea1206c..f5085c0e60542bb314c78dbfebb1bf168ab4a55e 100644
(file)
--- a/
grading/threads/alarm-multiple.c
+++ b/
grading/threads/alarm-multiple.c
@@
-11,15
+11,14
@@
#include "threads/thread.h"
#include "devices/timer.h"
#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)
{
static void test_sleep (int thread_cnt, int iterations);
void
test (void)
{
+ /* This test does not work with the MLFQS. */
+ ASSERT (!enable_mlfqs);
+
test_sleep (5, 7);
}
\f
test_sleep (5, 7);
}
\f