Skip to content

Commit 2c7fc8c

Browse files
committed
Work around bug where set_pipefail() is not thread safe
1 parent 61e0a80 commit 2c7fc8c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/test_macros.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -150,10 +150,9 @@ fn test_pipe() {
150150

151151
let wc_cmd = "wc";
152152
assert!(run_cmd!(ls | $wc_cmd).is_ok());
153-
}
154153

155-
#[test]
156-
fn test_ignore_and_pipefail() {
154+
// test `ignore` command and pipefail mode
155+
// FIXME: make set_pipefail() thread safe, then move this to a separate test_ignore_and_pipefail()
157156
struct TestCase {
158157
/// Run the test case, returning whether the result `.is_ok()`.
159158
code: fn() -> bool,

0 commit comments

Comments
 (0)