From 5bc25e32eb70c44ea93b3d43f96ebf28fb7ae885 Mon Sep 17 00:00:00 2001 From: Eric Huss Date: Mon, 21 Apr 2025 19:30:22 -0700 Subject: [PATCH] Remove passing_alternate_backend After some testing I notice that this test is failing randomly because the `true` program is exiting before mdbook is able to transmit the JSON, and it fails with a broken pipe. This will be replaced with backends_receive_render_context_via_stdin, which does essentially the same thing, but does suffer from the same problem. --- tests/alternative_backends.rs | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/tests/alternative_backends.rs b/tests/alternative_backends.rs index ecd25031..a1b21ac4 100644 --- a/tests/alternative_backends.rs +++ b/tests/alternative_backends.rs @@ -6,13 +6,6 @@ use std::fs; use std::path::Path; use tempfile::{Builder as TempFileBuilder, TempDir}; -#[test] -fn passing_alternate_backend() { - let (md, _temp) = dummy_book_with_backend("passing", success_cmd(), false); - - md.build().unwrap(); -} - #[test] fn failing_alternate_backend() { let (md, _temp) = dummy_book_with_backend("failing", fail_cmd(), false); @@ -143,14 +136,6 @@ fn fail_cmd() -> &'static str { } } -fn success_cmd() -> &'static str { - if cfg!(windows) { - r#"cmd.exe /c "exit 0""# - } else { - "true" - } -} - fn rust_exe(temp: &Path, name: &str, src: &str) { let rs = temp.join(name).with_extension("rs"); fs::write(&rs, src).unwrap();