projects
/
pintos-anon
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Make tests public. Rewrite most tests. Add tests.
[pintos-anon]
/
src
/
tests
/
userprog
/
open-normal.c
diff --git a/src/tests/userprog/open-normal.c
b/src/tests/userprog/open-normal.c
new file mode 100644
(file)
index 0000000..
4040fc2
--- /dev/null
+++ b/
src/tests/userprog/open-normal.c
@@ -0,0
+1,11
@@
+#include <syscall.h>
+#include "tests/lib.h"
+#include "tests/main.h"
+
+void
+test_main (void)
+{
+ int handle = open ("sample.txt");
+ if (handle < 2)
+ fail ("open() returned %d", handle);
+}