Skip to content

Commit

Permalink
Merge pull request #6395 from cakebaker/cp_tail_use_ignore_to_disable…
Browse files Browse the repository at this point in the history
…_tests

cp/tail: use `#[ignore]` to disable tests
  • Loading branch information
sylvestre authored May 12, 2024
2 parents 1a5639b + 320bdcf commit 096d32c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion tests/by-util/test_cp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 5 additions & 5 deletions tests/by-util/test_tail.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;

Expand Down Expand Up @@ -3599,7 +3599,7 @@ fn test_when_argument_file_is_non_existent_unix_socket_address_then_error() {
let result = file.write_all(random_string.as_bytes());
assert!(result.is_ok());

let expected_stdout = vec![format!("==> {} <==", path), random_string].join("\n");
let expected_stdout = [format!("==> {} <==", path), random_string].join("\n");
ts.ucmd()
.args(&["-c", "+0", path, socket])
.fails()
Expand All @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 096d32c

Please sign in to comment.