From 7ae8135b62057be6b1691f04b27eabe285b05efd Mon Sep 17 00:00:00 2001 From: Alan Somers Date: Mon, 30 Nov 2020 18:20:49 -0700 Subject: [PATCH] process: fix the process_kill_on_drop.rs test on non-Linux systems (#3203) "disown" is a bash builtin, not part of POSIX sh. --- .cirrus.yml | 2 +- tokio/tests/process_kill_on_drop.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.cirrus.yml b/.cirrus.yml index 78b43bd91..e36f725b9 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -11,7 +11,7 @@ task: LOOM_MAX_PREEMPTIONS: 2 RUSTFLAGS: -Dwarnings setup_script: - - pkg install -y curl + - pkg install -y bash curl - curl https://sh.rustup.rs -sSf --output rustup.sh - sh rustup.sh -y --profile minimal --default-toolchain stable - . $HOME/.cargo/env diff --git a/tokio/tests/process_kill_on_drop.rs b/tokio/tests/process_kill_on_drop.rs index f67bb23c6..00f5c6dc6 100644 --- a/tokio/tests/process_kill_on_drop.rs +++ b/tokio/tests/process_kill_on_drop.rs @@ -10,7 +10,7 @@ use tokio_test::assert_ok; #[tokio::test] async fn kill_on_drop() { - let mut cmd = Command::new("sh"); + let mut cmd = Command::new("bash"); cmd.args(&[ "-c", "