PKUOS - Pintos
Pintos source browser for PKU Operating System course
src
tests
userprog
exec-missing.c
Go to the documentation of this file.
1
/** Tries to execute a nonexistent process.
2
The exec system call must return -1. */
3
4
#include <syscall.h>
5
#include "
tests/lib.h
"
6
#include "
tests/main.h
"
7
8
void
9
test_main
(
void
)
10
{
11
msg
(
"exec(\"no-such-file\"): %d"
,
exec
(
"no-such-file"
));
12
}
test_main
void test_main(void)
Tries to execute a nonexistent process.
Definition:
exec-missing.c:9
exec
pid_t exec(const char *file)
Definition:
syscall.c:79
msg
void msg(const char *format,...)
Definition:
lib.c:28
lib.h
main.h
Generated on Thu Nov 4 2021 19:31:01 for PKUOS - Pintos by
1.9.2