mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
head: fix 'test_spams_newline' to check *against* newline spam
The comment was introduced in commit8320b1ec5f, the test was introduced in commitc1f518e586claiming to be about "failing GNU head tests". However, a simple check reveals no such difference: ```console $ echo -n a | hd 00000000 61 |a| 00000001 $ echo -n a | head | hd # GNU head 00000000 61 |a| 00000001 $ echo -n a | cargo run -- head | hd 00000000 61 |a| 00000001 $ echo -n a | busybox head | hd 00000000 61 |a| 00000001 $ ``` Looking at the GNU tests directly, it seems that there is a similar, but different test.
This commit is contained in:
@@ -99,10 +99,8 @@ fn test_verbose() {
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[ignore]
|
||||
fn test_spams_newline() {
|
||||
//this test is does not mirror what GNU does
|
||||
new_ucmd!().pipe_in("a").succeeds().stdout_is("a\n");
|
||||
new_ucmd!().pipe_in("a").succeeds().stdout_is("a");
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
||||
Reference in New Issue
Block a user