From 88d2dfe67a746467c4201b85feffa0f7658dcaa9 Mon Sep 17 00:00:00 2001 From: Daniel Hofstetter Date: Mon, 3 Nov 2025 17:02:57 +0100 Subject: [PATCH] du: fix dead code warnings in test on Android --- tests/by-util/test_du.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/by-util/test_du.rs b/tests/by-util/test_du.rs index 7c6dcd6c33a..adcf8bfdec6 100644 --- a/tests/by-util/test_du.rs +++ b/tests/by-util/test_du.rs @@ -22,9 +22,9 @@ const SUB_DIR: &str = "subdir/deeper"; const SUB_DEEPER_DIR: &str = "subdir/deeper/deeper_dir"; const SUB_DIR_LINKS: &str = "subdir/links"; const SUB_DIR_LINKS_DEEPER_SYM_DIR: &str = "subdir/links/deeper_dir"; -#[cfg(not(target_os = "openbsd"))] +#[cfg(all(not(target_os = "android"), not(target_os = "openbsd")))] const SUB_FILE: &str = "subdir/links/subwords.txt"; -#[cfg(not(target_os = "openbsd"))] +#[cfg(all(not(target_os = "android"), not(target_os = "openbsd")))] const SUB_LINK: &str = "subdir/links/sublink.txt"; #[test]