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
/
no-vm
/
multi-oom.c
diff --git
a/src/tests/userprog/no-vm/multi-oom.c
b/src/tests/userprog/no-vm/multi-oom.c
index cd2c939e808aaac822de41c7779530f64045d027..be0668a46d8c6dbbf94ef296abd10dca1296e586 100644
(file)
--- a/
src/tests/userprog/no-vm/multi-oom.c
+++ b/
src/tests/userprog/no-vm/multi-oom.c
@@
-27,8
+27,6
@@
static const int EXPECTED_DEPTH_TO_PASS = 30;
static const int EXPECTED_REPETITIONS = 10;
static const int EXPECTED_DEPTH_TO_PASS = 30;
static const int EXPECTED_REPETITIONS = 10;
-const char *test_name = "multi-oom";
-
enum child_termination_mode { RECURSE, CRASH };
/* Spawn a recursive copy of ourselves, passing along instructions
enum child_termination_mode { RECURSE, CRASH };
/* Spawn a recursive copy of ourselves, passing along instructions
@@
-107,6
+105,8
@@
main (int argc, char *argv[])
{
int n;
{
int n;
+ test_name = "multi-oom";
+
n = argc > 1 ? atoi (argv[1]) : 0;
bool is_at_root = (n == 0);
if (is_at_root)
n = argc > 1 ? atoi (argv[1]) : 0;
bool is_at_root = (n == 0);
if (is_at_root)