8000 sort: add a test we were not covering · uutils/coreutils@b68d8a9 · GitHub
[go: up one dir, main page]

Skip to content
8000

Commit b68d8a9

Browse files
committed
sort: add a test we were not covering
1 parent 5be0db5 commit b68d8a9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/by-util/test_sort.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1054,6 +1054,12 @@ fn test_batch_size_invalid() {
10541054
.fails_with_code(2)
10551055
.stderr_contains("sort: invalid --batch-size argument '0'")
10561056
.stderr_contains("sort: minimum --batch-size argument is '2'");
1057+
// with -m, the error path is a bit different
1058+
TestScenario::new(util_name!())
1059+
.ucmd()
1060+
.args(&["-m", "--batch-size=a"])
1061+
.fails_with_code(2)
1062+
.stderr_contains("sort: invalid --batch-size argument 'a'");
10571063
}
10581064

10591065
#[test]

0 commit comments

Comments
 (0)
0