ash: copy function tests from hush testsuite
Signed-off-by: Ron Yorston <rmy@pobox.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
committed by
Denys Vlasenko
parent
2cf4591413
commit
85405c80a2
8
shell/ash_test/ash-misc/func3.tests
Executable file
8
shell/ash_test/ash-misc/func3.tests
Executable file
@@ -0,0 +1,8 @@
|
||||
f() { false; return; echo BAD; };
|
||||
{ f; echo One:$?; }; echo Zero:$?
|
||||
|
||||
f() { false; return; };
|
||||
f; echo One:$?
|
||||
|
||||
f() { return 5; };
|
||||
f; echo Five:$?
|
Reference in New Issue
Block a user