X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Ftests%2Fuserprog%2Fchild-rox.c;h=6fb2fc97a3e05d84c8b2cad62b129bc638f71a9b;hb=520ff4dd2a106a4d4a21468a72ba820c8ea7d242;hp=fdff97b2410021a1ea30b1b59992901a2769e032;hpb=615bf3b3d2a8573ed6fb9ddc0055745e163ac999;p=pintos-anon diff --git a/src/tests/userprog/child-rox.c b/src/tests/userprog/child-rox.c index fdff97b..6fb2fc9 100644 --- a/src/tests/userprog/child-rox.c +++ b/src/tests/userprog/child-rox.c @@ -1,11 +1,15 @@ +/* Child process run by rox-child and rox-multichild tests. + Opens and tries to write to its own executable, verifying that + that is disallowed. + Then recursively executes itself to the depth indicated by the + first command-line argument. */ + #include #include #include #include #include "tests/lib.h" -const char *test_name = "child-rox"; - static void try_write (void) { @@ -25,6 +29,8 @@ try_write (void) int main (int argc UNUSED, char *argv[]) { + test_name = "child-rox"; + msg ("begin"); try_write ();