about summary refs log tree commit diff
path: root/src/test
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2011-12-11 17:50:12 -0800
committerBrian Anderson <banderson@mozilla.com>2011-12-11 18:49:04 -0800
commit7a8e73662dd0847ee351a3cdcaf27b0be8299902 (patch)
treebfa9403e403d1e418a8c0f9a3853333df2411d9e /src/test
parent7bc34f63d85ee7d351b90320239fc48860f01da2 (diff)
rt: Make unwinding through __morestack work on mac
Had to bump the min stack size in some of the tests from 256 bytes
to 1024 bytes. Not sure why yet.
Diffstat (limited to 'src/test')
-rw-r--r--src/test/run-fail/morestack2.rs2
-rw-r--r--src/test/run-fail/morestack3.rs4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/test/run-fail/morestack2.rs b/src/test/run-fail/morestack2.rs
index 02b1adae481..b47108ba026 100644
--- a/src/test/run-fail/morestack2.rs
+++ b/src/test/run-fail/morestack2.rs
@@ -33,7 +33,7 @@ resource and_then_get_big_again(_i: ()) {
 }
 
 fn main() {
-    rustrt::set_min_stack(256u);
+    rustrt::set_min_stack(1024u);
     std::task::spawn((), fn (&&_i: ()) {
         let r = and_then_get_big_again(());
         getbig_call_c_and_fail(10000);
diff --git a/src/test/run-fail/morestack3.rs b/src/test/run-fail/morestack3.rs
index 9796017a8eb..93faea60a52 100644
--- a/src/test/run-fail/morestack3.rs
+++ b/src/test/run-fail/morestack3.rs
@@ -29,6 +29,6 @@ resource and_then_get_big_again(_i: @int) {
 }
 
 fn main() {
-    rustrt::set_min_stack(256u);
-    std::task::spawn(100, getbig_and_fail);
+    rustrt::set_min_stack(1024u);
+    std::task::spawn(400, getbig_and_fail);
 }
\ No newline at end of file