PKUOS - Pintos
Pintos source browser for PKU Operating System course
tests.h
Go to the documentation of this file.
1#ifndef TESTS_THREADS_TESTS_H
2#define TESTS_THREADS_TESTS_H
3
4void run_test (const char *);
5
6typedef void test_func (void);
7
35
36void msg (const char *, ...);
37void fail (const char *, ...);
38void pass (void);
39
40#endif /**< tests/threads/tests.h */
41
test_func test_priority_donate_chain
test_func test_priority_fifo
Definition: priority-fifo.c:32
test_func test_alarm_multiple
Definition: alarm-wait.c:22
test_func test_priority_donate_nest
test_func test_priority_donate_lower
test_func test_alarm_zero
Tests timer_sleep(0), which should return immediately.
Definition: alarm-zero.c:11
test_func test_alarm_negative
Tests timer_sleep(-100).
test_func test_priority_condvar
void fail(const char *,...)
Prints failure message FORMAT as if with printf(), prefixing the output by the name of the test and F...
Definition: lib.c:40
test_func test_mlfqs_fair_20
Definition: mlfqs-fair.c:37
test_func test_alarm_simultaneous
test_func test_mlfqs_nice_2
Definition: mlfqs-fair.c:43
test_func test_priority_change
void pass(void)
tests/threads/tests.h
Definition: tests.c:98
test_func test_priority_preempt
test_func test_mlfqs_nice_10
Definition: mlfqs-fair.c:49
void run_test(const char *)
Runs the test named NAME.
Definition: tests.c:47
void msg(const char *,...)
Prints FORMAT as if with printf(), prefixing the output by the name of the test and following it with...
Definition: lib.c:28
test_func test_priority_donate_one
test_func test_alarm_single
Definition: alarm-wait.c:16
test_func test_priority_donate_multiple2
test_func test_priority_sema
Definition: priority-sema.c:16
test_func test_priority_donate_sema
test_func test_mlfqs_fair_2
Definition: mlfqs-fair.c:31
test_func test_mlfqs_block
Definition: mlfqs-block.c:23
test_func test_mlfqs_load_avg
test_func test_mlfqs_load_60
test_func test_mlfqs_load_1
Verifies that a single busy thread raises the load average to 0.5 in 38 to 45 seconds.
Definition: mlfqs-load-1.c:18
test_func test_mlfqs_recent_1
Checks that recent_cpu is calculated properly for the case of a single ready process.
test_func test_priority_donate_multiple
void test_func(void)
Definition: tests.h:6
test_func test_alarm_priority