diff --git a/Test/C03traps.ztst b/Test/C03traps.ztst index f120809a7..e3d9ea871 100644 --- a/Test/C03traps.ztst +++ b/Test/C03traps.ztst @@ -720,14 +720,15 @@ F:Must be tested with a top-level script rather than source or function 0:ERR_RETURN in "else" branch in nested function >Good + unsetopt err_return # "leaked" from previous test (setopt err_exit for x in y; do false && true done print OK ) -0:ERR_EXIT not triggered by status 1 at end of for ->OK +1f:ERR_EXIT triggered by status 1 at end of for +F:This fails to exit for unknown reasons and prints OK (setopt err_exit integer x=0 @@ -736,8 +737,8 @@ F:Must be tested with a top-level script rather than source or function done print OK ) -0:ERR_EXIT not triggered by status 1 at end of while ->OK +1f:ERR_EXIT triggered by status 1 at end of while +F:This fails to exit for unknown reasons and prints OK (setopt err_exit repeat 1; do @@ -745,8 +746,8 @@ F:Must be tested with a top-level script rather than source or function done print OK ) -0:ERR_EXIT not triggered by status 1 at end of repeat ->OK +1f:ERR_EXIT triggered by status 1 at end of repeat +F:This fails to exit for unknown reasons and prints OK (setopt err_exit if true; then @@ -754,8 +755,8 @@ F:Must be tested with a top-level script rather than source or function fi print OK ) -0:ERR_EXIT not triggered by status 1 at end of if ->OK +1f:ERR_EXIT triggered by status 1 at end of if +F:This fails to exit for unknown reasons and prints OK (setopt err_exit { @@ -763,8 +764,8 @@ F:Must be tested with a top-level script rather than source or function } print OK ) -0:ERR_EXIT not triggered by status 1 at end of { } ->OK +1f:ERR_EXIT triggered by status 1 at end of { } +F:This fails to exit for unknown reasons and prints OK unsetopt err_exit err_return (setopt err_exit