projects
/
pintos-anon
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Implement a proper block layer with partition support.
[pintos-anon]
/
src
/
tests
/
userprog
/
read-bad-fd.c
diff --git
a/src/tests/userprog/read-bad-fd.c
b/src/tests/userprog/read-bad-fd.c
index 029f647f0b2534d6c50daf9566e303457d0fa194..a8b190d0d4b6092609ba0826eb2a49c4b4936f36 100644
(file)
--- a/
src/tests/userprog/read-bad-fd.c
+++ b/
src/tests/userprog/read-bad-fd.c
@@
-1,3
+1,7
@@
+/* Tries to read from an invalid fd,
+ which must either fail silently or terminate the process with
+ exit code -1. */
+
#include <limits.h>
#include <syscall.h>
#include "tests/lib.h"
#include <limits.h>
#include <syscall.h>
#include "tests/lib.h"