CS318 - Pintos
Pintos source browser for JHU CS318 course
halt.c
Go to the documentation of this file.
1 /** Tests the halt system call. */
2 
3 #include "tests/lib.h"
4 #include "tests/main.h"
5 
6 void
7 test_main (void)
8 {
9  halt ();
10  fail ("should have halted");
11 }
lib.h
halt
void halt(void)
Projects 2 and later.
Definition: syscall.c:65
fail
void fail(const char *format,...)
Definition: lib.c:40
main.h
test_main
void test_main(void)
Tests the halt system call.
Definition: halt.c:7