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]
/
src
/
tests
/
threads
/
p1-1.c
diff --git
a/src/tests/threads/p1-1.c
b/src/tests/threads/p1-1.c
index 627bba5fc2e5109dff8a44b6e1fa99d92e5126fb..694ea0b98c1b8706d3afe8cff9864221bf9b2231 100644
(file)
--- a/
src/tests/threads/p1-1.c
+++ b/
src/tests/threads/p1-1.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);
+
/* Easy test: 5 threads sleep once each. */
test_sleep (5, 1);
/* Easy test: 5 threads sleep once each. */
test_sleep (5, 1);