Skip to content

Commit d8e6f36

Browse files
authored
Merge pull request #6017 from BenWiederhake/dev-uniq-flake-stdin-write-gnutest
uniq: Fix flaky test gnu_tests
2 parents 095eced + e91d0bd commit d8e6f36

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/by-util/test_uniq.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -755,7 +755,7 @@ fn gnu_tests() {
755755
TestCase {
756756
name: "112",
757757
args: &["-D", "-c"],
758-
input: "a a\na b\n",
758+
input: "", // Note: Different from GNU test, but should not matter
759759
stdout: Some(""),
760760
stderr: Some("uniq: printing all duplicated lines and repeat counts is meaningless\nTry 'uniq --help' for more information.\n"),
761761
exit: Some(1),
@@ -811,7 +811,7 @@ fn gnu_tests() {
811811
TestCase {
812812
name: "119",
813813
args: &["--all-repeated=badoption"],
814-
input: "a a\na b\n",
814+
input: "", // Note: Different from GNU test, but should not matter
815815
stdout: Some(""),
816816
stderr: Some("uniq: invalid argument 'badoption' for '--all-repeated'\nValid arguments are:\n - 'none'\n - 'prepend'\n - 'separate'\nTry 'uniq --help' for more information.\n"),
817817
exit: Some(1),

0 commit comments

Comments
 (0)