not yet done with subshell error

This commit is contained in:
pvincent
2026-07-25 11:32:45 +04:00
parent 90569007e9
commit cfab4506ab
3 changed files with 20 additions and 5 deletions
+3
View File
@@ -55,8 +55,11 @@ 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
fail_type subshell_source_not_found SUBSHELL_SOURCE_NOT_FOUND
fail_type subshell_error SUBSHELL_ERROR
failed=$((TEST_COUNT - SUCCESS_COUNT))
if [[ $failed -gt 0 ]]; then
ratio=$((100 * SUCCESS_COUNT / TEST_COUNT))
echo "${ratio}% passed, $SUCCESS_COUNT succeeded, $failed failed!"
+12
View File
@@ -86,6 +86,18 @@ function do_source_not_found {
function do_file_not_found {
./lib/fake/nope.bash
}
function do_subshell_source_not_found {
output=$(miaou_debug "---subshell1--$$ $BASHPID $PPID--")
output=$(miaou_debug "---subshell2--$$ $BASHPID $PPID--")
: "$output"
"${MIAOU_BASH_DIR}/test/stub/extra/library.bash"
}
function do_subshell_error {
:
}
# FUNCTIONS
function call_function_which_will_exit {