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
/
multi-recurse.c
diff --git
a/src/tests/userprog/multi-recurse.c
b/src/tests/userprog/multi-recurse.c
index 7786831da87dda144af819ff68111296eb704ee3..fcd592b1fbb4deeb5baf6fbc65f8d13d6291b810 100644
(file)
--- a/
src/tests/userprog/multi-recurse.c
+++ b/
src/tests/userprog/multi-recurse.c
@@
-1,17
+1,18
@@
+/* Executes itself recursively to the depth indicated by the
+ first command-line argument. */
+
#include <debug.h>
#include <stdlib.h>
#include <stdio.h>
#include <syscall.h>
#include "tests/lib.h"
#include <debug.h>
#include <stdlib.h>
#include <stdio.h>
#include <syscall.h>
#include "tests/lib.h"
-const char *test_name = "multi-recurse";
-
int
main (int argc UNUSED, char *argv[])
{
int n = atoi (argv[1]);
int
main (int argc UNUSED, char *argv[])
{
int n = atoi (argv[1]);
- if (n == 0)
-
n = atoi (argv[0])
;
+
+
test_name = "multi-recurse"
;
msg ("begin %d", n);
if (n != 0)
msg ("begin %d", n);
if (n != 0)