sh testsuite: add tests for exitcode on failure to exec
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
2feaa227a4
commit
c775f829db
2
shell/ash_test/ash-misc/exitcode_EACCES.right
Normal file
2
shell/ash_test/ash-misc/exitcode_EACCES.right
Normal file
@ -0,0 +1,2 @@
|
||||
exitcode_EACCES.tests: line 1: ./: Permission denied
|
||||
126
|
2
shell/ash_test/ash-misc/exitcode_EACCES.tests
Executable file
2
shell/ash_test/ash-misc/exitcode_EACCES.tests
Executable file
@ -0,0 +1,2 @@
|
||||
./
|
||||
echo $?
|
2
shell/ash_test/ash-misc/exitcode_ENOENT.right
Normal file
2
shell/ash_test/ash-misc/exitcode_ENOENT.right
Normal file
@ -0,0 +1,2 @@
|
||||
exitcode_ENOENT.tests: line 1: ./does_not_exist_for_sure: not found
|
||||
127
|
2
shell/ash_test/ash-misc/exitcode_ENOENT.tests
Executable file
2
shell/ash_test/ash-misc/exitcode_ENOENT.tests
Executable file
@ -0,0 +1,2 @@
|
||||
./does_not_exist_for_sure
|
||||
echo $?
|
2
shell/hush_test/hush-misc/exitcode_EACCES.right
Normal file
2
shell/hush_test/hush-misc/exitcode_EACCES.right
Normal file
@ -0,0 +1,2 @@
|
||||
hush: can't execute './': Permission denied
|
||||
126
|
2
shell/hush_test/hush-misc/exitcode_EACCES.tests
Executable file
2
shell/hush_test/hush-misc/exitcode_EACCES.tests
Executable file
@ -0,0 +1,2 @@
|
||||
./
|
||||
echo $?
|
2
shell/hush_test/hush-misc/exitcode_ENOENT.right
Normal file
2
shell/hush_test/hush-misc/exitcode_ENOENT.right
Normal file
@ -0,0 +1,2 @@
|
||||
hush: can't execute './does_not_exist_for_sure': No such file or directory
|
||||
127
|
2
shell/hush_test/hush-misc/exitcode_ENOENT.tests
Executable file
2
shell/hush_test/hush-misc/exitcode_ENOENT.tests
Executable file
@ -0,0 +1,2 @@
|
||||
./does_not_exist_for_sure
|
||||
echo $?
|
Loading…
Reference in New Issue
Block a user