@@ -1219,7 +1219,7 @@ fn test_spawn_unlinked_unsup_no_fail_down() { // grandchild sends on a port
1219
1219
do spawn_unlinked {
1220
1220
do spawn_unlinked {
1221
1221
// Give middle task a chance to fail-but-not-kill-us.
1222
- for iter:: repeat ( 8192 ) { task:: yield ( ) ; }
1222
+ for iter:: repeat ( 128 ) { task:: yield ( ) ; }
1223
1223
comm:: send ( ch, ( ) ) ; // If killed first, grandparent hangs.
1224
1224
}
1225
1225
fail; // Shouldn't kill either (grand)parent or (grand)child.
@@ -1234,7 +1234,7 @@ fn test_spawn_unlinked_unsup_no_fail_up() { // child unlinked fails
1234
1234
fn test_spawn_unlinked_sup_no_fail_up ( ) { // child unlinked fails
1235
1235
do spawn_supervised { fail; }
1236
1236
// Give child a chance to fail-but-not-kill-us.
1237
- for iter:: repeat( 8192 ) { task:: yield ( ) ; }
1237
+ for iter:: repeat( 128 ) { task:: yield ( ) ; }
1238
1238
}
1239
1239
#[ test] #[ should_fail] #[ ignore( cfg( windows) ) ]
1240
1240
fn test_spawn_unlinked_sup_fail_down ( ) {
@@ -1304,7 +1304,7 @@ fn test_spawn_failure_propagate_grandchild() {
1304
1304
loop { task:: yield ( ) ; }
1305
1305
}
1306
1306
}
1307
- for iter:: repeat( 8192 ) { task:: yield ( ) ; }
1307
+ for iter:: repeat( 128 ) { task:: yield ( ) ; }
1308
1308
fail;
1309
1309
}
1310
1310
@@ -1316,7 +1316,7 @@ fn test_spawn_failure_propagate_secondborn() {
1316
1316
loop { task:: yield ( ) ; }
1317
1317
}
1318
1318
}
1319
- for iter:: repeat( 8192 ) { task:: yield ( ) ; }
1319
+ for iter:: repeat( 128 ) { task:: yield ( ) ; }
1320
1320
fail;
1321
1321
}
1322
1322
@@ -1328,7 +1328,7 @@ fn test_spawn_failure_propagate_nephew_or_niece() {
1328
1328
loop { task:: yield ( ) ; }
1329
1329
}
1330
1330
}
1331
- for iter:: repeat( 8192 ) { task:: yield ( ) ; }
1331
+ for iter:: repeat( 128 ) { task:: yield ( ) ; }
1332
1332
fail;
1333
1333
}
1334
1334
@@ -1340,7 +1340,7 @@ fn test_spawn_linked_sup_propagate_sibling() {
1340
1340
loop { task:: yield ( ) ; }
1341
1341
}
1342
1342
}
1343
- for iter:: repeat( 8192 ) { task:: yield ( ) ; }
1343
+ for iter:: repeat( 128 ) { task:: yield ( ) ; }
1344
1344
fail;
1345
1345
}
1346
1346
@@ -1741,7 +1741,7 @@ fn test_atomically_nested() {
1741
1741
fn test_child_doesnt_ref_parent() {
1742
1742
// If the child refcounts the parent task, this will stack overflow when
1743
1743
// climbing the task tree to dereference each ancestor. (See #1789)
1744
- const generations: uint = 8192 ;
1744
+ const generations: uint = 128 ;
1745
1745
fn child_no(x: uint) -> fn~() {
1746
1746
ret || {
1747
1747
if x < generations {
0 commit comments