PKUOS - Pintos
Pintos source browser for PKU Operating System course
src
tests
main.c
Go to the documentation of this file.
1
#include <
random.h
>
2
#include "
tests/lib.h
"
3
#include "
tests/main.h
"
4
5
int
6
main
(
int
argc
UNUSED
,
char
*argv[])
7
{
8
test_name
= argv[0];
9
10
msg
(
"begin"
);
11
random_init
(0);
12
test_main
();
13
msg
(
"end"
);
14
return
0;
15
}
test_name
const char * test_name
Child process for syn-read test.
Definition:
child-syn-read.c:14
UNUSED
#define UNUSED
GCC lets us add "attributes" to functions, function parameters, etc.
Definition:
debug.h:7
msg
void msg(const char *format,...)
Definition:
lib.c:28
lib.h
main
int main(int argc UNUSED, char *argv[])
Definition:
main.c:6
main.h
random_init
void random_init(unsigned seed)
Initializes or reinitializes the PRNG with the given SEED.
Definition:
random.c:34
random.h
test_main
void test_main(void)
tests/main.h
Definition:
syn-read.c:17
Generated on Thu Nov 4 2021 19:31:01 for PKUOS - Pintos by
1.9.2