summaryrefslogtreecommitdiffstats
path: root/tests/posix/exec_plus_nonexistent.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/posix/exec_plus_nonexistent.sh')
-rw-r--r--tests/posix/exec_plus_nonexistent.sh6
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/posix/exec_plus_nonexistent.sh b/tests/posix/exec_plus_nonexistent.sh
index 6bddc67..24582a3 100644
--- a/tests/posix/exec_plus_nonexistent.sh
+++ b/tests/posix/exec_plus_nonexistent.sh
@@ -1,4 +1,2 @@
-! stderr=$(invoke_bfs basic -exec "$TESTS/nonexistent" {} + 2>&1 >/dev/null)
-[ -n "$stderr" ]
-
-! bfs_diff basic -exec "$TESTS/nonexistent" {} + -print
+bfs_diff basic -exec "$TESTS/nonexistent" {} + -print 2>"$TEST/err" && fail
+test -s "$TEST/err"