summaryrefslogtreecommitdiffstats
path: root/tests/posix/exec_nonexistent.sh
blob: d4ad92a6d1a9e74957be67c8713b88f1911ecd03 (plain)
1
2
3
4
5
6
7
# Failure to execute the command should lead to an error message and
# non-zero exit status.  See https://unix.stackexchange.com/q/704522/56202

! stderr=$(invoke_bfs basic -exec "$TESTS/nonexistent" {} \; 2>&1 >/dev/null)
[ -n "$stderr" ]

check_exit $EX_BFS bfs_diff basic -print -exec "$TESTS/nonexistent" {} \; -print