Skip to content

Commit 516960e

Browse files
committed
---
yaml --- r: 5387 b: refs/heads/master c: a609da7 h: refs/heads/master i: 5385: 8217a3e 5383: ad83070 v: v3
1 parent e322103 commit 516960e

File tree

3 files changed

+20
-14
lines changed

3 files changed

+20
-14
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 58d812f0f8c664b606ef3b087fd5f69e5f988924
2+
refs/heads/master: a609da7c15e603e2b6d98468139cdf15cfd268bb
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
// error-pattern:goodfail
2+
3+
use std;
4+
import std::task;
5+
import std::comm;
6+
7+
fn goodfail() {
8+
task::yield();
9+
fail "goodfail";
10+
}
11+
12+
fn main() {
13+
task::spawn(bind goodfail());
14+
let po = comm::port();
15+
// We shouldn't be able to get past this recv since there's no
16+
// message available
17+
let i: int = comm::recv(po);
18+
fail "badfail";
19+
}

trunk/src/test/run-fail/trivial-message2.rs

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)