summaryrefslogtreecommitdiff
path: root/t/tap-bad-prog.tap
diff options
context:
space:
mode:
Diffstat (limited to 't/tap-bad-prog.tap')
-rw-r--r--t/tap-bad-prog.tap9
1 files changed, 2 insertions, 7 deletions
diff --git a/t/tap-bad-prog.tap b/t/tap-bad-prog.tap
index cf1f371ea..490cd4a78 100644
--- a/t/tap-bad-prog.tap
+++ b/t/tap-bad-prog.tap
@@ -49,13 +49,8 @@ $AUTOMAKE
./configure
-if $MAKE check >stdout; then
- r='not ok'
-else
- r='ok'
-fi
-cat stdout
-result_ "$r" '"make check" returns non-zero exit status'
+command_ok_ '"make check" returns non-zero exit status' \
+ run_make -O -e FAIL check
# FIXME: maybe grep for stricter error messages in the next checks?