diff options
Diffstat (limited to 'tests/posix/exec_nonexistent.sh')
-rw-r--r-- | tests/posix/exec_nonexistent.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/posix/exec_nonexistent.sh b/tests/posix/exec_nonexistent.sh new file mode 100644 index 0000000..a9ff052 --- /dev/null +++ b/tests/posix/exec_nonexistent.sh @@ -0,0 +1,4 @@ +# Failure to execute the command should lead to an error message and +# non-zero exit status. See https://unix.stackexchange.com/q/704522/56202 +bfs_diff basic -print -exec "$TESTS/nonexistent" {} \; -print 2>"$TEST/err" && fail +test -s "$TEST/err" |