Skip to content

Commit 096d32c

Browse files
authored
Merge pull request #6395 from cakebaker/cp_tail_use_ignore_to_disable_tests
cp/tail: use `#[ignore]` to disable tests
2 parents 1a5639b + 320bdcf commit 096d32c

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

tests/by-util/test_cp.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1507,7 +1507,7 @@ fn test_cp_preserve_invalid_rejected() {
15071507

15081508
#[test]
15091509
#[cfg(target_os = "android")]
1510-
#[cfg(disabled_until_fixed)] // FIXME: the test looks to .succeed on android
1510+
#[ignore = "disabled until fixed"] // FIXME: the test looks to .succeed on android
15111511
fn test_cp_preserve_xattr_fails_on_android() {
15121512
// Because of the SELinux extended attributes used on Android, trying to copy extended
15131513
// attributes has to fail in this case, since we specify `--preserve=xattr` and this puts it

tests/by-util/test_tail.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3525,7 +3525,7 @@ fn test_when_argument_file_is_a_symlink_to_directory_then_error() {
35253525
// TODO: make this work on windows
35263526
#[test]
35273527
#[cfg(unix)]
3528-
#[cfg(disabled_until_fixed)]
3528+
#[ignore = "disabled until fixed"]
35293529
fn test_when_argument_file_is_a_faulty_symlink_then_error() {
35303530
let ts = TestScenario::new(util_name!());
35313531
let at = &ts.fixtures;
@@ -3557,7 +3557,7 @@ fn test_when_argument_file_is_a_faulty_symlink_then_error() {
35573557

35583558
#[test]
35593559
#[cfg(unix)]
3560-
#[cfg(disabled_until_fixed)]
3560+
#[ignore = "disabled until fixed"]
35613561
fn test_when_argument_file_is_non_existent_unix_socket_address_then_error() {
35623562
use std::os::unix::net;
35633563

@@ -3599,7 +3599,7 @@ fn test_when_argument_file_is_non_existent_unix_socket_address_then_error() {
35993599
let result = file.write_all(random_string.as_bytes());
36003600
assert!(result.is_ok());
36013601

3602-
let expected_stdout = vec![format!("==> {} <==", path), random_string].join("\n");
3602+
let expected_stdout = [format!("==> {} <==", path), random_string].join("\n");
36033603
ts.ucmd()
36043604
.args(&["-c", "+0", path, socket])
36053605
.fails()
@@ -3616,7 +3616,7 @@ fn test_when_argument_file_is_non_existent_unix_socket_address_then_error() {
36163616
}
36173617

36183618
#[test]
3619-
#[cfg(disabled_until_fixed)]
3619+
#[ignore = "disabled until fixed"]
36203620
fn test_when_argument_files_are_simple_combinations_of_stdin_and_regular_file() {
36213621
let scene = TestScenario::new(util_name!());
36223622
let at = &scene.fixtures;
@@ -3718,7 +3718,7 @@ fn test_when_argument_files_are_simple_combinations_of_stdin_and_regular_file()
37183718
}
37193719

37203720
#[test]
3721-
#[cfg(disabled_until_fixed)]
3721+
#[ignore = "disabled until fixed"]
37223722
fn test_when_argument_files_are_triple_combinations_of_fifo_pipe_and_regular_file() {
37233723
let scene = TestScenario::new(util_name!());
37243724
let at = &scene.fixtures;

0 commit comments

Comments
 (0)