summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Hofstetter <daniel.hofstetter@42dh.com>2024-05-12 15:15:44 +0200
committerDaniel Hofstetter <daniel.hofstetter@42dh.com>2024-05-12 15:15:44 +0200
commit692cdfac341ed1e71da1bd5fd1089c5bd7ff45a9 (patch)
treea7a544df9a1ff3786b403cba874c2732ea838f69
parent1a5639b7d27f384381d3ff2dbd55174eb369bf9f (diff)
cp/tail: use #[ignore] to disable tests
instead of a cfg attribute
-rw-r--r--tests/by-util/test_cp.rs2
-rw-r--r--tests/by-util/test_tail.rs8
2 files changed, 5 insertions, 5 deletions
diff --git a/tests/by-util/test_cp.rs b/tests/by-util/test_cp.rs
index b8e598f32..5164070c4 100644
--- a/tests/by-util/test_cp.rs
+++ b/tests/by-util/test_cp.rs
@@ -1507,7 +1507,7 @@ fn test_cp_preserve_invalid_rejected() {
#[test]
#[cfg(target_os = "android")]
-#[cfg(disabled_until_fixed)] // FIXME: the test looks to .succeed on android
+#[ignore = "disabled until fixed"] // FIXME: the test looks to .succeed on android
fn test_cp_preserve_xattr_fails_on_android() {
// Because of the SELinux extended attributes used on Android, trying to copy extended
// attributes has to fail in this case, since we specify `--preserve=xattr` and this puts it
diff --git a/tests/by-util/test_tail.rs b/tests/by-util/test_tail.rs
index b08a72ebf..ee45ad2da 100644
--- a/tests/by-util/test_tail.rs
+++ b/tests/by-util/test_tail.rs
@@ -3525,7 +3525,7 @@ fn test_when_argument_file_is_a_symlink_to_directory_then_error() {
// TODO: make this work on windows
#[test]
#[cfg(unix)]
-#[cfg(disabled_until_fixed)]
+#[ignore = "disabled until fixed"]
fn test_when_argument_file_is_a_faulty_symlink_then_error() {
let ts = TestScenario::new(util_name!());
let at = &ts.fixtures;
@@ -3557,7 +3557,7 @@ fn test_when_argument_file_is_a_faulty_symlink_then_error() {
#[test]
#[cfg(unix)]
-#[cfg(disabled_until_fixed)]
+#[ignore = "disabled until fixed"]
fn test_when_argument_file_is_non_existent_unix_socket_address_then_error() {
use std::os::unix::net;
@@ -3616,7 +3616,7 @@ fn test_when_argument_file_is_non_existent_unix_socket_address_then_error() {
}
#[test]
-#[cfg(disabled_until_fixed)]
+#[ignore = "disabled until fixed"]
fn test_when_argument_files_are_simple_combinations_of_stdin_and_regular_file() {
let scene = TestScenario::new(util_name!());
let at = &scene.fixtures;
@@ -3718,7 +3718,7 @@ fn test_when_argument_files_are_simple_combinations_of_stdin_and_regular_file()
}
#[test]
-#[cfg(disabled_until_fixed)]
+#[ignore = "disabled until fixed"]
fn test_when_argument_files_are_triple_combinations_of_fifo_pipe_and_regular_file() {
let scene = TestScenario::new(util_name!());
let at = &scene.fixtures;