summaryrefslogtreecommitdiffstats
path: root/tests/run
diff options
context:
space:
mode:
authorNicolas Williams <nico@cryptonector.com>2014-08-11 17:25:09 -0500
committerNicolas Williams <nico@cryptonector.com>2014-08-14 03:21:35 -0500
commit9f13afa20f91a7f2fd9393c29bb583aa8f748f0c (patch)
tree91261713cb5a9cc1c9fdb9575a24cd84484c4a15 /tests/run
parent908c10928b56221d44d3d883b2131b4d855aa758 (diff)
Add jq_report_error() function; use it
Put a stop to fprintf(stderr, ...) where we shouldn't.
Diffstat (limited to 'tests/run')
-rwxr-xr-xtests/run4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/run b/tests/run
index 923478c6..878128de 100755
--- a/tests/run
+++ b/tests/run
@@ -129,13 +129,13 @@ if [ -n "$VALGRIND" ] && ! grep 'ERROR SUMMARY: 0 errors from 0 contexts' $d/out
cat $d/out
exit 1
fi
-if ! grep '^error: syntax error,' $d/out > /dev/null; then
+if ! grep '^jq: error: syntax error,' $d/out > /dev/null; then
echo "Module system not detecting syntax errors in modules correctly" 1>&2
exit 1
fi
if $VALGRIND ./jq -ner -L $d '%::wat' > $d/out 2>&1 ||
- ! grep '^error: syntax error,' $d/out > /dev/null; then
+ ! grep '^jq: error: syntax error,' $d/out > /dev/null; then
echo "Syntax errors not detected?" 1>&2
exit 1
fi