projects
/
pintos-anon
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix link errors with GCC 10 and binutils 2.34 on Fedora
[pintos-anon]
/
src
/
tests
/
userprog
/
child-rox.c
diff --git
a/src/tests/userprog/child-rox.c
b/src/tests/userprog/child-rox.c
index fdff97b2410021a1ea30b1b59992901a2769e032..6fb2fc97a3e05d84c8b2cad62b129bc638f71a9b 100644
(file)
--- 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 <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <syscall.h>
#include "tests/lib.h"
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <syscall.h>
#include "tests/lib.h"
-const char *test_name = "child-rox";
-
static void
try_write (void)
{
static void
try_write (void)
{
@@
-25,6
+29,8
@@
try_write (void)
int
main (int argc UNUSED, char *argv[])
{
int
main (int argc UNUSED, char *argv[])
{
+ test_name = "child-rox";
+
msg ("begin");
try_write ();
msg ("begin");
try_write ();