mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
parent
5fbef7743b
commit
876924f5d5
2 changed files with 50 additions and 18 deletions
|
@ -95,6 +95,21 @@ fn test_exclude_type_option() {
|
|||
new_ucmd!().args(&["-x", "ext4", "-x", "ext3"]).succeeds();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_include_exclude_same_type() {
|
||||
new_ucmd!()
|
||||
.args(&["-t", "ext4", "-x", "ext4"])
|
||||
.fails()
|
||||
.stderr_is("df: file system type 'ext4' both selected and excluded");
|
||||
new_ucmd!()
|
||||
.args(&["-t", "ext4", "-x", "ext4", "-t", "ext3", "-x", "ext3"])
|
||||
.fails()
|
||||
.stderr_is(
|
||||
"df: file system type 'ext4' both selected and excluded\n\
|
||||
df: file system type 'ext3' both selected and excluded",
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_total() {
|
||||
// Example output:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue