1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 19:47:45 +00:00

df: fix panic when using -x argument (#3257)

Also allow multiple '-x' options
This commit is contained in:
Daniel Hofstetter 2022-03-14 10:32:42 +01:00
parent dd6d29f389
commit 433504949d
2 changed files with 7 additions and 0 deletions

View file

@ -85,6 +85,11 @@ fn test_type_option() {
new_ucmd!().args(&["-t", "ext4", "-t", "ext3"]).succeeds();
}
#[test]
fn test_exclude_type_option() {
new_ucmd!().args(&["-x", "ext4", "-x", "ext3"]).succeeds();
}
#[test]
fn test_total() {
// Example output: