Browse Source

source and file not found

main
pvincent 1 day ago
parent
commit
90569007e9
  1. 2
      test/miaou-bash.test.bash
  2. 7
      test/stub/scenario.bash

2
test/miaou-bash.test.bash

@ -53,6 +53,8 @@ fail_type false FALSE
fail_type return RETURN fail_type return RETURN
fail_type command_not_found COMMAND_NOT_FOUND fail_type command_not_found COMMAND_NOT_FOUND
fail_type exit EXIT 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)) failed=$((TEST_COUNT - SUCCESS_COUNT))
if [[ $failed -gt 0 ]]; then if [[ $failed -gt 0 ]]; then

7
test/stub/scenario.bash

@ -79,6 +79,13 @@ function do_unbound_variable {
echo "b=${b}" echo "b=${b}"
} }
function do_source_not_found {
source "./lib/fake/nope.bash"
}
function do_file_not_found {
./lib/fake/nope.bash
}
# FUNCTIONS # FUNCTIONS
function call_function_which_will_exit { function call_function_which_will_exit {

Loading…
Cancel
Save