File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ refs/heads/try: c274a6888410ce3e357e014568b43310ed787d36
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8
8
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
9
- refs/heads/dist-snap: fcf9844891db2603c215aa7205ac50b5d3ba47dc
9
+ refs/heads/dist-snap: 09cb7ecc6729e12a6561d62744697e134d362238
10
10
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
11
11
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
12
12
refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
Original file line number Diff line number Diff line change @@ -82,6 +82,7 @@ pub enum StdioContainer {
82
82
}
83
83
84
84
/// Describes the result of a process after it has terminated.
85
+ /// Note that Windows have no signals, so the result is usually ExitStatus.
85
86
#[ deriving( Eq ) ]
86
87
pub enum ProcessExit {
87
88
/// Normal termination with an exit status.
Original file line number Diff line number Diff line change 8
8
// option. this file may not be copied, modified, or distributed
9
9
// except according to those terms.
10
10
11
- // xfail-fast
11
+ // xfail-fast calling itself doesn't work on check-fast
12
12
13
13
use std:: { os, run} ;
14
14
use std:: io:: process;
@@ -20,8 +20,10 @@ fn main() {
20
20
unsafe { * ( 0 as * mut int ) = 0 ; }
21
21
} else {
22
22
let status = run:: process_status ( args[ 0 ] , [ ~"signal"] ) ;
23
+ // Windows does not have signal, so we get exit status 0xC0000028 (STATUS_BAD_STACK).
23
24
match status {
24
- process:: ExitSignal ( _) => { } ,
25
+ process:: ExitSignal ( _) if cfg ! ( unix) => { } ,
26
+ process:: ExitStatus ( 0xC0000028 ) if cfg ! ( windows) => { } ,
25
27
_ => fail ! ( "invalid termination (was not signalled): {:?}" , status)
26
28
}
27
29
}
You can’t perform that action at this time.
0 commit comments