PKUOS - Pintos
Pintos source browser for PKU Operating System course
src
tests
userprog
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
}
halt
void halt(void)
Projects 2 and later.
Definition:
syscall.c:65
fail
void fail(const char *format,...)
Definition:
lib.c:40
lib.h
main.h
test_main
void test_main(void)
Tests the halt system call.
Definition:
halt.c:7
Generated on Thu Nov 4 2021 19:31:01 for PKUOS - Pintos by
1.9.2