source and file not found

This commit is contained in:
pvincent
2026-07-24 14:55:35 +04:00
parent 9b01aa11b7
commit 90569007e9
2 changed files with 9 additions and 0 deletions
+2
View File
@@ -53,6 +53,8 @@ fail_type false FALSE
fail_type return RETURN
fail_type command_not_found COMMAND_NOT_FOUND
fail_type exit EXIT
fail_type source_not_found SOURCE_NOT_FOUND
fail_type file_not_found FILE_NOT_FOUND
failed=$((TEST_COUNT - SUCCESS_COUNT))
if [[ $failed -gt 0 ]]; then
+7
View File
@@ -79,6 +79,13 @@ function do_unbound_variable {
echo "b=${b}"
}
function do_source_not_found {
source "./lib/fake/nope.bash"
}
function do_file_not_found {
./lib/fake/nope.bash
}
# FUNCTIONS
function call_function_which_will_exit {