1#ifndef TESTS_THREADS_TESTS_H
2#define TESTS_THREADS_TESTS_H
36void msg (
const char *, ...);
37void fail (
const char *, ...);
test_func test_priority_donate_chain
test_func test_priority_fifo
test_func test_alarm_multiple
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.
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...
test_func test_mlfqs_fair_20
test_func test_alarm_simultaneous
test_func test_mlfqs_nice_2
test_func test_priority_change
void pass(void)
tests/threads/tests.h
test_func test_priority_preempt
test_func test_mlfqs_nice_10
void run_test(const char *)
Runs the test named NAME.
void msg(const char *,...)
Prints FORMAT as if with printf(), prefixing the output by the name of the test and following it with...
test_func test_priority_donate_one
test_func test_alarm_single
test_func test_priority_donate_multiple2
test_func test_priority_sema
test_func test_priority_donate_sema
test_func test_mlfqs_fair_2
test_func test_mlfqs_block
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.
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
test_func test_alarm_priority