mirror of
https://github.com/uutils/coreutils.git
synced 2025-07-07 21:45:01 +00:00
sort: add a test we were not covering
This commit is contained in:
parent
5be0db5e8c
commit
b68d8a975d
1 changed files with 6 additions and 0 deletions
|
@ -1054,6 +1054,12 @@ fn test_batch_size_invalid() {
|
|||
.fails_with_code(2)
|
||||
.stderr_contains("sort: invalid --batch-size argument '0'")
|
||||
.stderr_contains("sort: minimum --batch-size argument is '2'");
|
||||
// with -m, the error path is a bit different
|
||||
TestScenario::new(util_name!())
|
||||
.ucmd()
|
||||
.args(&["-m", "--batch-size=a"])
|
||||
.fails_with_code(2)
|
||||
.stderr_contains("sort: invalid --batch-size argument 'a'");
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue