sh testsuite: add tests for exitcode on failure to exec

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2016-10-03 00:55:34 +02:00
parent 2feaa227a4
commit c775f829db
8 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,2 @@
exitcode_EACCES.tests: line 1: ./: Permission denied
126

View File

@ -0,0 +1,2 @@
./
echo $?

View File

@ -0,0 +1,2 @@
exitcode_ENOENT.tests: line 1: ./does_not_exist_for_sure: not found
127

View File

@ -0,0 +1,2 @@
./does_not_exist_for_sure
echo $?

View File

@ -0,0 +1,2 @@
hush: can't execute './': Permission denied
126

View File

@ -0,0 +1,2 @@
./
echo $?

View File

@ -0,0 +1,2 @@
hush: can't execute './does_not_exist_for_sure': No such file or directory
127

View File

@ -0,0 +1,2 @@
./does_not_exist_for_sure
echo $?