Skip to content

Commit

Permalink
tests/valgrind-test.sh : Fix valgrind detection.
Browse files Browse the repository at this point in the history
  • Loading branch information
erikd committed Mar 15, 2013
1 parent 6767f21 commit e62b2e6
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions tests/valgrind-test.sh
@@ -1,8 +1,13 @@
#!/bin/bash -e
#!/bin/bash

# Make sure we have valgrind.
valgrind=`which valgrind`
test -x "$valgrind" || (echo "Error : Can't find valgrind." ; exit 1)
valgrind=$(which valgrind)
if test $? -ne 0 ; then
echo "Error : Can't find valgrind."
exit 1
fi

set -e

tmpdir=tmp-`date "+%Y%m%dT%H%M%S"`

Expand Down

0 comments on commit e62b2e6

Please sign in to comment.