projects
/
pintos-anon
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add another test that locks & unlocks in FIFO order instead of stack
[pintos-anon]
/
src
/
tests
/
vm
/
mmap-zero.c
diff --git
a/src/tests/vm/mmap-zero.c
b/src/tests/vm/mmap-zero.c
index 8b399c4d7b34d0e3b4796905910955f956efa9ff..368b759d48e0d989253a145de2c55c3f7b6ad066 100644
(file)
--- a/
src/tests/vm/mmap-zero.c
+++ b/
src/tests/vm/mmap-zero.c
@@
-1,3
+1,8
@@
+/* Tries to map a zero-length file, which may or may not work but
+ should not terminate the process or crash.
+ Then dereferences the address that we tried to map,
+ and the process must be terminated with -1 exit code. */
+
#include <syscall.h>
#include "tests/lib.h"
#include "tests/main.h"
#include <syscall.h>
#include "tests/lib.h"
#include "tests/main.h"