summaryrefslogtreecommitdiffstats
path: root/tests/posix/exec_nonexistent.sh
blob: 901be861441d02d6cfefb434d700fc55ba59d32f (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" ]

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