From b9e972094b3931a00a2b2dd2602d993e2863c260 Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Sat, 7 Jan 2023 09:50:50 +0100 Subject: [PATCH] test: add a test matching what busybox is doing --- tests/by-util/test_test.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/by-util/test_test.rs b/tests/by-util/test_test.rs index 27ff13e3c..2d1963a3f 100644 --- a/tests/by-util/test_test.rs +++ b/tests/by-util/test_test.rs @@ -835,6 +835,15 @@ fn test_or_as_filename() { new_ucmd!().args(&["x", "-a", "-z", "-o"]).run().code_is(1); } +#[test] +#[ignore = "TODO: Busybox has this working"] +fn test_filename_or_with_equal() { + new_ucmd!() + .args(&["-f", "=", "a", "-o", "b"]) + .run() + .code_is(0); +} + #[test] #[ignore = "GNU considers this an error"] fn test_string_length_and_nothing() {