Skip to content

Commit ff30566

Browse files
committed
auto merge of #9698 : sanxiyn/rust/android, r=huonw
2 parents e08391c + 0640ae0 commit ff30566

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/test/run-pass/rtio-processes.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ use std::rt::io::pipe::*;
2929
use std::str;
3030

3131
#[test]
32-
#[cfg(unix, not(android))]
32+
#[cfg(unix, not(target_os="android"))]
3333
fn smoke() {
3434
let io = ~[];
3535
let args = ProcessConfig {
@@ -46,7 +46,7 @@ fn smoke() {
4646
}
4747

4848
#[test]
49-
#[cfg(unix, not(android))]
49+
#[cfg(unix, not(target_os="android"))]
5050
fn smoke_failure() {
5151
let io = ~[];
5252
let args = ProcessConfig {
@@ -63,7 +63,7 @@ fn smoke_failure() {
6363
}
6464

6565
#[test]
66-
#[cfg(unix, not(android))]
66+
#[cfg(unix, not(target_os="android"))]
6767
fn exit_reported_right() {
6868
let io = ~[];
6969
let args = ProcessConfig {
@@ -103,7 +103,7 @@ fn run_output(args: ProcessConfig) -> ~str {
103103
}
104104

105105
#[test]
106-
#[cfg(unix, not(android))]
106+
#[cfg(unix, not(target_os="android"))]
107107
fn stdout_works() {
108108
let pipe = PipeStream::new().unwrap();
109109
let io = ~[Ignored, CreatePipe(pipe, false, true)];
@@ -118,7 +118,7 @@ fn stdout_works() {
118118
}
119119

120120
#[test]
121-
#[cfg(unix, not(android))]
121+
#[cfg(unix, not(target_os="android"))]
122122
fn set_cwd_works() {
123123
let pipe = PipeStream::new().unwrap();
124124
let io = ~[Ignored, CreatePipe(pipe, false, true)];
@@ -134,7 +134,7 @@ fn set_cwd_works() {
134134
}
135135

136136
#[test]
137-
#[cfg(unix, not(android))]
137+
#[cfg(unix, not(target_os="android"))]
138138
fn stdin_works() {
139139
let input = PipeStream::new().unwrap();
140140
let output = PipeStream::new().unwrap();

0 commit comments

Comments
 (0)