diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2021-07-02 22:28:51 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2021-07-02 22:28:51 +0200 |
commit | 4d902ea9def573cd15271177abbfa50fbf30c84f (patch) | |
tree | 17d9b8646d86f570506e9cc7b9098734620fc7cf /testsuite/awk.tests | |
parent | 8bb03da906e1f8f750123214b15a19d7d4e166c1 (diff) | |
download | busybox-w32-4d902ea9def573cd15271177abbfa50fbf30c84f.tar.gz busybox-w32-4d902ea9def573cd15271177abbfa50fbf30c84f.tar.bz2 busybox-w32-4d902ea9def573cd15271177abbfa50fbf30c84f.zip |
awk: fix beavior of "exit" without parameter
function old new delta
evaluate 3336 3339 +3
awk_exit 93 94 +1
awk_main 829 827 -2
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/1 up/down: 4/-2) Total: 2 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to '')
-rwxr-xr-x | testsuite/awk.tests | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/testsuite/awk.tests b/testsuite/awk.tests index 3c230393f..770d8ffce 100755 --- a/testsuite/awk.tests +++ b/testsuite/awk.tests | |||
@@ -445,4 +445,9 @@ testing 'awk $NF is empty' \ | |||
445 | '' \ | 445 | '' \ |
446 | 'a=====123=' | 446 | 'a=====123=' |
447 | 447 | ||
448 | testing "awk exit N propagates through END's exit" \ | ||
449 | "awk 'BEGIN { exit 42 } END { exit }'; echo \$?" \ | ||
450 | "42\n" \ | ||
451 | '' '' | ||
452 | |||
448 | exit $FAILCOUNT | 453 | exit $FAILCOUNT |