Skip to content

Commit 2bc7d16

Browse files
committed
---
yaml --- r: 96157 b: refs/heads/dist-snap c: c45870b h: refs/heads/master i: 96155: 5983cb7 v: v3
1 parent f01a016 commit 2bc7d16

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ refs/heads/try: c274a6888410ce3e357e014568b43310ed787d36
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
9-
refs/heads/dist-snap: 88831383b4d6f95b74fc588bf8932b6108184280
9+
refs/heads/dist-snap: c45870b85e9183a31ab0a0a8a3841977f5f2615f
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1212
refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0

branches/dist-snap/src/test/run-pass/core-run-destroy.rs

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,23 @@ use std::io;
2222

2323
#[test]
2424
fn test_destroy_once() {
25-
let mut p = run::Process::new("echo", [], run::ProcessOptions::new());
25+
#[cfg(not(target_os="android"))]
26+
static PROG: &'static str = "echo";
27+
#[cfg(target_os="android")]
28+
static PROG: &'static str = "ls"; // android don't have echo binary
29+
30+
let mut p = run::Process::new(PROG, [], run::ProcessOptions::new());
2631
p.destroy(); // this shouldn't crash (and nor should the destructor)
2732
}
2833

2934
#[test]
3035
fn test_destroy_twice() {
31-
let mut p = run::Process::new("echo", [], run::ProcessOptions::new());
36+
#[cfg(not(target_os="android"))]
37+
static PROG: &'static str = "echo";
38+
#[cfg(target_os="android")]
39+
static PROG: &'static str = "ls"; // android don't have echo binary
40+
41+
let mut p = run::Process::new(PROG, [], run::ProcessOptions::new());
3242
p.destroy(); // this shouldnt crash...
3343
do io::io_error::cond.trap(|_| {}).inside {
3444
p.destroy(); // ...and nor should this (and nor should the destructor)

0 commit comments

Comments
 (0)