Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Make the testsuite run on machines without valgrind
  • Loading branch information
stedolan committed Dec 13, 2013
1 parent 5ac6a46 commit 32ea50d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/run
@@ -1,3 +1,9 @@
#!/bin/sh

cat $@ | valgrind --error-exitcode=1 -q --leak-check=full ./jq --run-tests
if which valgrind > /dev/null; then
VALGRIND='valgrind --error-exitcode=1 -q --leak-check=full'
else
VALGRIND=
fi

cat $@ | $VALGRIND ./jq --run-tests

0 comments on commit 32ea50d

Please sign in to comment.