projects
/
pintos-anon
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix ld output with recent versions of GCC and binutils
[pintos-anon]
/
src
/
tests
/
threads
/
priority-fifo.c
diff --git
a/src/tests/threads/priority-fifo.c
b/src/tests/threads/priority-fifo.c
index e71b7e5e00d07b14b982a5788df149b2be5ed69d..3af98a30ac217e7e7978c87ce1327771c42b10b7 100644
(file)
--- a/
src/tests/threads/priority-fifo.c
+++ b/
src/tests/threads/priority-fifo.c
@@
-37,7
+37,7
@@
test_priority_fifo (void)
int i, cnt;
/* This test does not work with the MLFQS. */
int i, cnt;
/* This test does not work with the MLFQS. */
- ASSERT (!
enable
_mlfqs);
+ ASSERT (!
thread
_mlfqs);
/* Make sure our priority is the default. */
ASSERT (thread_get_priority () == PRI_DEFAULT);
/* Make sure our priority is the default. */
ASSERT (thread_get_priority () == PRI_DEFAULT);
@@
-50,7
+50,7
@@
test_priority_fifo (void)
ASSERT (output != NULL);
lock_init (&lock);
ASSERT (output != NULL);
lock_init (&lock);
- thread_set_priority (PRI_DEFAULT
-
2);
+ thread_set_priority (PRI_DEFAULT
+
2);
for (i = 0; i < THREAD_CNT; i++)
{
char name[16];
for (i = 0; i < THREAD_CNT; i++)
{
char name[16];
@@
-60,7
+60,7
@@
test_priority_fifo (void)
d->iterations = 0;
d->lock = &lock;
d->op = &op;
d->iterations = 0;
d->lock = &lock;
d->op = &op;
- thread_create (name, PRI_DEFAULT
-
1, simple_thread_func, d);
+ thread_create (name, PRI_DEFAULT
+
1, simple_thread_func, d);
}
thread_set_priority (PRI_DEFAULT);
}
thread_set_priority (PRI_DEFAULT);