aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/userprog/create-normal.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/userprog/create-normal.c')
-rw-r--r--src/tests/userprog/create-normal.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/tests/userprog/create-normal.c b/src/tests/userprog/create-normal.c
new file mode 100644
index 0000000..3cbc463
--- /dev/null
+++ b/src/tests/userprog/create-normal.c
@@ -0,0 +1,10 @@
+/* Creates an ordinary empty file. */
+
+#include "tests/lib.h"
+#include "tests/main.h"
+
+void
+test_main (void)
+{
+ CHECK (create ("quux.dat", 0), "create quux.dat");
+}