Skip to content

Commit f22c0c0

Browse files
committed
---
yaml --- r: 31481 b: refs/heads/dist-snap c: 5312704 h: refs/heads/master i: 31479: 66e2419 v: v3
1 parent 202df4b commit f22c0c0

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: d0c6ce338884ee21843f4b40bf6bf18d222ce5df
99
refs/heads/incoming: d9317a174e434d4c99fc1a37fd7dc0d2f5328d37
10-
refs/heads/dist-snap: afe77575259939dbaebb2b02ae4ebab628c611bf
10+
refs/heads/dist-snap: 5312704904df3a088581bbe75c1f19a04671c673
1111
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1212
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/dist-snap/src/libcore/task.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1219,7 +1219,7 @@ fn test_spawn_unlinked_unsup_no_fail_down() { // grandchild sends on a port
12191219
do spawn_unlinked {
12201220
do spawn_unlinked {
12211221
// 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(); }
12231223
comm::send(ch, ()); // If killed first, grandparent hangs.
12241224
}
12251225
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
12341234
fn test_spawn_unlinked_sup_no_fail_up() { // child unlinked fails
12351235
do spawn_supervised { fail; }
12361236
// Give child a chance to fail-but-not-kill-us.
1237-
for iter::repeat(8192) { task::yield(); }
1237+
for iter::repeat(128) { task::yield(); }
12381238
}
12391239
#[test] #[should_fail] #[ignore(cfg(windows))]
12401240
fn test_spawn_unlinked_sup_fail_down() {
@@ -1304,7 +1304,7 @@ fn test_spawn_failure_propagate_grandchild() {
13041304
loop { task::yield(); }
13051305
}
13061306
}
1307-
for iter::repeat(8192) { task::yield(); }
1307+
for iter::repeat(128) { task::yield(); }
13081308
fail;
13091309
}
13101310

@@ -1316,7 +1316,7 @@ fn test_spawn_failure_propagate_secondborn() {
13161316
loop { task::yield(); }
13171317
}
13181318
}
1319-
for iter::repeat(8192) { task::yield(); }
1319+
for iter::repeat(128) { task::yield(); }
13201320
fail;
13211321
}
13221322

@@ -1328,7 +1328,7 @@ fn test_spawn_failure_propagate_nephew_or_niece() {
13281328
loop { task::yield(); }
13291329
}
13301330
}
1331-
for iter::repeat(8192) { task::yield(); }
1331+
for iter::repeat(128) { task::yield(); }
13321332
fail;
13331333
}
13341334

@@ -1340,7 +1340,7 @@ fn test_spawn_linked_sup_propagate_sibling() {
13401340
loop { task::yield(); }
13411341
}
13421342
}
1343-
for iter::repeat(8192) { task::yield(); }
1343+
for iter::repeat(128) { task::yield(); }
13441344
fail;
13451345
}
13461346

@@ -1741,7 +1741,7 @@ fn test_atomically_nested() {
17411741
fn test_child_doesnt_ref_parent() {
17421742
// If the child refcounts the parent task, this will stack overflow when
17431743
// climbing the task tree to dereference each ancestor. (See #1789)
1744-
const generations: uint = 8192;
1744+
const generations: uint = 128;
17451745
fn child_no(x: uint) -> fn~() {
17461746
ret || {
17471747
if x < generations {

0 commit comments

Comments
 (0)