diff options
| author | Michael Bebenita <[email protected]> | 2010-09-07 18:01:35 -0700 |
|---|---|---|
| committer | Michael Bebenita <[email protected]> | 2010-09-07 18:41:07 -0700 |
| commit | 79e3856d7d4e159eae84093c6b5b5009b121cd8c (patch) | |
| tree | 862f752a2dfdf613faf59ae919f528f860d15a7e /src/test/run-pass/task-comm-15.rs | |
| parent | Added a few utility classes, cleaned up the include order of .h files, and st... (diff) | |
| download | rust-79e3856d7d4e159eae84093c6b5b5009b121cd8c.tar.xz rust-79e3856d7d4e159eae84093c6b5b5009b121cd8c.zip | |
Small updates to test cases.
Diffstat (limited to 'src/test/run-pass/task-comm-15.rs')
| -rw-r--r-- | src/test/run-pass/task-comm-15.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/test/run-pass/task-comm-15.rs b/src/test/run-pass/task-comm-15.rs index 8d748f59..70680e24 100644 --- a/src/test/run-pass/task-comm-15.rs +++ b/src/test/run-pass/task-comm-15.rs @@ -9,6 +9,10 @@ io fn start(chan[int] c, int n) { io fn main() { let port[int] p = port(); + // Spawn a task that sends us back messages. The parent task + // is likely to terminate before the child completes, so from + // the child's point of view the receiver may die. We should + // drop messages on the floor in this case, and not crash! auto child = spawn thread "child" start(chan(p), 10); auto c <- p; }
\ No newline at end of file |