Ignore tests on Android correctly
This commit is contained in:
parent
b637798a5a
commit
0640ae0ecd
@ -29,7 +29,7 @@ use std::rt::io::pipe::*;
|
|||||||
use std::str;
|
use std::str;
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
#[cfg(unix, not(android))]
|
#[cfg(unix, not(target_os="android"))]
|
||||||
fn smoke() {
|
fn smoke() {
|
||||||
let io = ~[];
|
let io = ~[];
|
||||||
let args = ProcessConfig {
|
let args = ProcessConfig {
|
||||||
@ -46,7 +46,7 @@ fn smoke() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
#[cfg(unix, not(android))]
|
#[cfg(unix, not(target_os="android"))]
|
||||||
fn smoke_failure() {
|
fn smoke_failure() {
|
||||||
let io = ~[];
|
let io = ~[];
|
||||||
let args = ProcessConfig {
|
let args = ProcessConfig {
|
||||||
@ -63,7 +63,7 @@ fn smoke_failure() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
#[cfg(unix, not(android))]
|
#[cfg(unix, not(target_os="android"))]
|
||||||
fn exit_reported_right() {
|
fn exit_reported_right() {
|
||||||
let io = ~[];
|
let io = ~[];
|
||||||
let args = ProcessConfig {
|
let args = ProcessConfig {
|
||||||
@ -103,7 +103,7 @@ fn run_output(args: ProcessConfig) -> ~str {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
#[cfg(unix, not(android))]
|
#[cfg(unix, not(target_os="android"))]
|
||||||
fn stdout_works() {
|
fn stdout_works() {
|
||||||
let pipe = PipeStream::new().unwrap();
|
let pipe = PipeStream::new().unwrap();
|
||||||
let io = ~[Ignored, CreatePipe(pipe, false, true)];
|
let io = ~[Ignored, CreatePipe(pipe, false, true)];
|
||||||
@ -118,7 +118,7 @@ fn stdout_works() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
#[cfg(unix, not(android))]
|
#[cfg(unix, not(target_os="android"))]
|
||||||
fn set_cwd_works() {
|
fn set_cwd_works() {
|
||||||
let pipe = PipeStream::new().unwrap();
|
let pipe = PipeStream::new().unwrap();
|
||||||
let io = ~[Ignored, CreatePipe(pipe, false, true)];
|
let io = ~[Ignored, CreatePipe(pipe, false, true)];
|
||||||
@ -134,7 +134,7 @@ fn set_cwd_works() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
#[cfg(unix, not(android))]
|
#[cfg(unix, not(target_os="android"))]
|
||||||
fn stdin_works() {
|
fn stdin_works() {
|
||||||
let input = PipeStream::new().unwrap();
|
let input = PipeStream::new().unwrap();
|
||||||
let output = PipeStream::new().unwrap();
|
let output = PipeStream::new().unwrap();
|
||||||
|
Loading…
Reference in New Issue
Block a user