From e67e725b1ba335268a2904d627a94475e9605876 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Sun, 7 Jul 2019 16:48:08 +0200 Subject: [PATCH] Fix more tests Signed-off-by: Igor Gnatenko --- 0001-Avoid-using-python-in-the-tests.patch | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/0001-Avoid-using-python-in-the-tests.patch b/0001-Avoid-using-python-in-the-tests.patch index 5ee4f97..5f267e3 100644 --- a/0001-Avoid-using-python-in-the-tests.patch +++ b/0001-Avoid-using-python-in-the-tests.patch @@ -1,4 +1,4 @@ -From 30d2f1dc44a0c08ef59f07e4a261c9027682ec7d Mon Sep 17 00:00:00 2001 +From 0a8361d3356d3a3a65f91065c75ca2e5df43c697 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Sun, 7 Jul 2019 16:36:34 +0200 Subject: [PATCH] Avoid using python in the tests @@ -6,13 +6,24 @@ Subject: [PATCH] Avoid using python in the tests References: https://github.com/oconnor663/shared_child.rs/issues/16 Signed-off-by: Igor Gnatenko --- - src/lib.rs | 8 +++----- - 1 file changed, 3 insertions(+), 5 deletions(-) + src/lib.rs | 12 +++++------- + 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/lib.rs b/src/lib.rs -index 5e65ba3..5509b26 100644 +index 5e65ba3..345dfc5 100644 --- a/src/lib.rs +++ b/src/lib.rs +@@ -39,8 +39,8 @@ + //! + //! // Spawn a child that will just sleep for a long time, + //! // and put it in an Arc to share between threads. +-//! let mut command = Command::new("python"); +-//! command.arg("-c").arg("import time; time.sleep(1000000000)"); ++//! let mut command = Command::new("sleep"); ++//! command.arg("infinity")"); + //! let shared_child = SharedChild::spawn(&mut command).unwrap(); + //! let child_arc = Arc::new(shared_child); + //! @@ -230,14 +230,12 @@ mod tests { use std::sync::Arc;