Add explanatory comments to userprog tests.
[pintos-anon] / src / tests / userprog / multi-child-fd.c
index 019708ec989fe55295b9f6a397bd59fa84f19c82..48de4b4afae62427a63e3d56d08ac02f9718693b 100644 (file)
@@ -1,3 +1,8 @@
+/* Opens a file and then runs a subprocess that tries to close
+   the file.  (Pintos does not have inheritance of file handles,
+   so this must fail.)  The parent process then attempts to use
+   the file handle, which must succeed. */
+
 #include <stdio.h>
 #include <syscall.h>
 #include "tests/userprog/sample.inc"