Skip to content

Commit 17dfdca

Browse files
committed
---
yaml --- r: 93745 b: refs/heads/try c: c45870b h: refs/heads/master i: 93743: ea0ff50 v: v3
1 parent a9c9333 commit 17dfdca

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
@@ -2,7 +2,7 @@
22
refs/heads/master: 0da105a8b7b6b1e0568e8ff20f6ff4b13cc7ecc2
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: a6d3e57dca68fde4effdda3e4ae2887aa535fcd6
5-
refs/heads/try: 88831383b4d6f95b74fc588bf8932b6108184280
5+
refs/heads/try: c45870b85e9183a31ab0a0a8a3841977f5f2615f
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c

branches/try/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)