test command_not_found
This commit is contained in:
@@ -51,6 +51,7 @@ fail_type subshell_term SUBSHELL_TERM
|
||||
fail_type unbound_variable UNBOUND_VARIABLE
|
||||
fail_type false FALSE
|
||||
fail_type return RETURN
|
||||
fail_type command_not_found COMMAND_NOT_FOUND
|
||||
|
||||
failed=$((TEST_COUNT - SUCCESS_COUNT))
|
||||
if [[ $failed -gt 0 ]]; then
|
||||
|
||||
@@ -26,6 +26,11 @@ function do_last_false {
|
||||
function do_return {
|
||||
echo START
|
||||
return 99
|
||||
}
|
||||
|
||||
function do_command_not_found {
|
||||
echo START
|
||||
command_not_found A B C
|
||||
echo SHOULD NOT APPEAR
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user