CS318 - Pintos
Pintos source browser for JHU CS318 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
}
lib.h
exec
pid_t exec(const char *file)
Definition:
syscall.c:79
test_main
void test_main(void)
Tries to execute a nonexistent process.
Definition:
exec-missing.c:9
main.h
msg
void msg(const char *format,...)
Definition:
lib.c:28
Generated on Thu Aug 22 2019 10:19:15 for CS318 - Pintos by
1.8.16