sh testsuite: add tests for exitcode on failure to exec
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
exitcode_EACCES.tests: line 1: ./: Permission denied
|
||||
126
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
./
|
||||
echo $?
|
||||
@@ -0,0 +1,2 @@
|
||||
exitcode_ENOENT.tests: line 1: ./does_not_exist_for_sure: not found
|
||||
127
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
./does_not_exist_for_sure
|
||||
echo $?
|
||||
Reference in New Issue
Block a user