mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-27 11:07:44 +00:00
Merge pull request #4005 from sylvestre/disable-expensive-test
Disable test_when_piped_input_then_no_broken_pipe by default
This commit is contained in:
commit
e523a56dab
3 changed files with 4 additions and 2 deletions
|
@ -59,6 +59,7 @@ fn test_invalid_user_spec() {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
#[cfg(not(target_os = "android"))]
|
||||||
fn test_preference_of_userspec() {
|
fn test_preference_of_userspec() {
|
||||||
let scene = TestScenario::new(util_name!());
|
let scene = TestScenario::new(util_name!());
|
||||||
let result = scene.cmd("whoami").run();
|
let result = scene.cmd("whoami").run();
|
||||||
|
|
|
@ -341,7 +341,7 @@ fn test_file_is_itself() {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
#[cfg(not(target_env = "musl"))]
|
#[cfg(not(any(target_env = "musl", target_os = "android")))]
|
||||||
fn test_file_is_newer_than_and_older_than_itself() {
|
fn test_file_is_newer_than_and_older_than_itself() {
|
||||||
// odd but matches GNU
|
// odd but matches GNU
|
||||||
new_ucmd!()
|
new_ucmd!()
|
||||||
|
@ -388,7 +388,7 @@ fn test_same_device_inode() {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
#[cfg(not(target_env = "musl"))]
|
#[cfg(not(any(target_env = "musl", target_os = "android")))]
|
||||||
// musl: creation time is not available on this platform currently
|
// musl: creation time is not available on this platform currently
|
||||||
fn test_newer_file() {
|
fn test_newer_file() {
|
||||||
let scenario = TestScenario::new(util_name!());
|
let scenario = TestScenario::new(util_name!());
|
||||||
|
|
|
@ -1843,6 +1843,7 @@ mod tests {
|
||||||
// should fail with any command that takes piped input.
|
// should fail with any command that takes piped input.
|
||||||
// See also https://github.com/uutils/coreutils/issues/3895
|
// See also https://github.com/uutils/coreutils/issues/3895
|
||||||
#[test]
|
#[test]
|
||||||
|
#[cfg_attr(not(feature = "expensive_tests"), ignore)]
|
||||||
fn test_when_piped_input_then_no_broken_pipe() {
|
fn test_when_piped_input_then_no_broken_pipe() {
|
||||||
let ts = TestScenario::new("tail");
|
let ts = TestScenario::new("tail");
|
||||||
for i in 0..10000 {
|
for i in 0..10000 {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue