CS318 - Pintos
Pintos source browser for JHU CS318 course
|
Go to the documentation of this file.
67 msg (
const char *format, ...)
83 fail (
const char *format, ...)
93 PANIC (
"test failed");
int putchar(int c)
Writes C to the vga display and serial port.
test_func test_mlfqs_load_1
test_func test_mlfqs_fair_2
void msg(const char *format,...)
Prints FORMAT as if with printf(), prefixing the output by the name of the test and following it with...
#define va_start(LIST, ARG)
test_func test_priority_donate_chain
test_func test_priority_donate_sema
test_func test_priority_change
int strcmp(const char *a_, const char *b_)
Finds the first differing characters in strings A and B.
test_func test_alarm_single
test_func test_priority_donate_lower
test_func test_alarm_negative
static const struct test tests[]
test_func test_mlfqs_nice_10
#define PANIC(...)
Halts the OS, printing the source file name, line number, and function name, plus a user-specific mes...
test_func test_alarm_zero
test_func test_mlfqs_load_avg
test_func test_priority_donate_nest
int printf(const char *format,...)
Writes formatted output to the console.
test_func test_priority_condvar
test_func test_priority_donate_multiple2
test_func test_alarm_simultaneous
test_func test_mlfqs_block
int vprintf(const char *format, va_list args)
The standard vprintf() function, which is like printf() but uses a va_list.
void fail(const char *format,...)
Prints failure message FORMAT as if with printf(), prefixing the output by the name of the test and F...
static const char * test_name
__builtin_va_list va_list
GCC has <stdarg.h> functionality as built-ins, so all we need is to use it.
void pass(void)
Prints a message indicating the current test passed.
test_func test_mlfqs_load_60
test_func test_priority_fifo
test_func test_mlfqs_fair_20
test_func test_mlfqs_recent_1
test_func test_priority_preempt
test_func test_alarm_priority
test_func test_priority_donate_multiple
test_func test_priority_sema
test_func test_priority_donate_one
test_func test_alarm_multiple
void run_test(const char *name)
Runs the test named NAME.
test_func test_mlfqs_nice_2