_listFiles_: use extended regex and return 0 if no files found

This commit is contained in:
Nathaniel Landau
2021-10-24 22:46:22 -04:00
parent 9381be991e
commit d7d6edb003
2 changed files with 19 additions and 4 deletions

View File

@@ -186,6 +186,11 @@ _testListFiles_() {
run _listFiles_ "g"
assert_failure
}
@test "_listFiles: fail when no files found" {
run _listFiles_ regex ".*notest[0-9]\.txt" "${TESTDIR}"
assert_failure
}
}
_testMakeSymlink_() {