projects
/
pintos-anon
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Clarify description to avoid unjustly nailing students.
[pintos-anon]
/
src
/
tests
/
userprog
/
exec-missing.c
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
}