aboutsummaryrefslogtreecommitdiff
path: root/tests/runner.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-06-27 15:47:47 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-06-27 15:47:47 -0700
commit46d3849df6a76f8c5b041172dc9fa2cc8a28be6f (patch)
tree67e4e4a933a684346d3201f24910b3c824067654 /tests/runner.py
parent33021c21d9278ddb1b5a1f49b795a7bdbf4804ef (diff)
fix test_stack
Diffstat (limited to 'tests/runner.py')
-rwxr-xr-xtests/runner.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/runner.py b/tests/runner.py
index cd9bea63..58176e45 100755
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -2104,12 +2104,12 @@ Succeeded!
}
return int(&x); // both for the number, and forces x to not be nativized
}
- int main()
+ int main(int argc, char **argv)
{
// We should get the same value for the first and last - stack has unwound
- int x1 = test(0);
+ int x1 = test(argc - 2);
int x2 = test(100);
- int x3 = test(0);
+ int x3 = test((argc - 2) / 4);
printf("*%d,%d*\\n", x3-x1, x2 != x1);
return 0;
}