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 committed 2016-10-03 00:55:34 +02:00
1 parent 2feaa227a4
commit c775f829db
8 files changed
+16

No files matched your search

@@ -0,0 +1,2 @@
exitcode_EACCES.tests: line 1: ./: Permission denied
126
+2
View File
@@ -0,0 +1,2 @@
./
echo $?
@@ -0,0 +1,2 @@
exitcode_ENOENT.tests: line 1: ./does_not_exist_for_sure: not found
127
+2
View File
@@ -0,0 +1,2 @@
./does_not_exist_for_sure
echo $?
@@ -0,0 +1,2 @@
hush: can't execute './': Permission denied
126
+2
View File
@@ -0,0 +1,2 @@
./
echo $?
@@ -0,0 +1,2 @@
hush: can't execute './does_not_exist_for_sure': No such file or directory
127
+2
View File
@@ -0,0 +1,2 @@
./does_not_exist_for_sure
echo $?