Skip to content

Commit f1cbb4d

Browse files
committed
fix rpass core-run-destroy for android
1 parent 22eb11c commit f1cbb4d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/test/run-pass/core-run-destroy.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,12 @@ fn test_destroy_twice() {
3737

3838
fn test_destroy_actually_kills(force: bool) {
3939

40-
#[cfg(unix)]
40+
#[cfg(unix,not(target_os="android"))]
4141
static BLOCK_COMMAND: &'static str = "cat";
4242

43+
#[cfg(unix,target_os="android")]
44+
static BLOCK_COMMAND: &'static str = "/system/bin/cat";
45+
4346
#[cfg(windows)]
4447
static BLOCK_COMMAND: &'static str = "cmd";
4548

0 commit comments

Comments
 (0)