Skip to content

Commit 22ac628

Browse files
committed
test: Enable all morestack tests
1 parent f4acaf6 commit 22ac628

File tree

10 files changed

+3
-27
lines changed

10 files changed

+3
-27
lines changed

src/test/run-fail/morestack1.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// xfail-test
2-
// compile-flags:--stack-growth
31
// error-pattern:explicit failure
42
fn getbig(i: int) {
53
if i != 0 {

src/test/run-fail/morestack2.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
// xfail-test
21
// error-pattern:explicit failure
3-
// compile-flags:--stack-growth
42

53
// This time we're testing that the stack limits are restored
64
// correctly after calling into the C stack and unwinding.

src/test/run-fail/morestack3.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
// xfail-test
21
// error-pattern:explicit failure
3-
// compile-flags:--stack-growth
42

53
// Just testing unwinding
64

src/test/run-fail/morestack4.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
// xfail-test
21
// error-pattern:explicit failure
3-
// compile-flags:--stack-growth
42

53
// Just testing unwinding
64

src/test/run-pass/morestack1.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1-
// xfail-test
2-
// compile-flags:--stack-growth
31
fn getbig(i: int) {
42
if i != 0 {
53
getbig(i - 1);
64
}
75
}
86

97
fn main() {
10-
getbig(10000000);
8+
getbig(100000);
119
}

src/test/run-pass/morestack2.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// xfail-test
2-
// compile-flags:--stack-growth
31
fn getbig(i: int) -> int {
42
let m = if i >= 0 {
53
let j = getbig(i - 1);
@@ -12,5 +10,5 @@ fn getbig(i: int) -> int {
1210
}
1311

1412
fn main() {
15-
getbig(10000000);
13+
getbig(100000);
1614
}

src/test/run-pass/morestack3.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// xfail-test
2-
// compile-flags:--stack-growth
3-
41
// Here we're testing that all of the argument registers, argument
52
// stack slots, and return value are preserved across split stacks.
63
fn getbig(a0: int,
@@ -40,6 +37,6 @@ fn getbig(a0: int,
4037
}
4138

4239
fn main() {
43-
let a = 1000000;
40+
let a = 100000;
4441
getbig(a, a+1, a+2, a+3, a+4, a+5, a+6, a+7, a+8, a+9);
4542
}

src/test/run-pass/morestack4.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// xfail-test
2-
// compile-flags:--stack-growth
3-
41
// This is testing for stack frames greater than 256 bytes,
52
// for which function prologues are generated differently
63

src/test/run-pass/morestack5.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// xfail-test
2-
// compile-flags:--stack-growth
3-
41
// This test will call __morestack with various minimum stack sizes
52

63
use std;

src/test/run-pass/morestack6.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// xfail-test
2-
// compile-flags:--stack-growth
3-
41
// This test attempts to force the dynamic linker to resolve
52
// external symbols as close to the red zone as possible.
63

0 commit comments

Comments
 (0)