CS318 - Pintos
Pintos source browser for JHU CS318 course
src
tests
userprog
read-normal.c
Go to the documentation of this file.
1
/** Try reading a file in the most normal way. */
2
3
#include "tests/userprog/sample.inc"
4
#include "
tests/lib.h
"
5
#include "
tests/main.h
"
6
7
void
8
test_main
(
void
)
9
{
10
check_file
(
"sample.txt"
, sample,
sizeof
sample - 1);
11
}
lib.h
test_main
void test_main(void)
Try reading a file in the most normal way.
Definition:
read-normal.c:8
main.h
check_file
void check_file(const char *file_name, const void *buf, size_t size)
Definition:
lib.c:151
Generated on Thu Aug 22 2019 10:19:15 for CS318 - Pintos by
1.8.16