Skip to content

Commit

Permalink
configure: Fail iff valgrind is explicitly requested but not available
Browse files Browse the repository at this point in the history
  • Loading branch information
richo committed Apr 28, 2015
1 parent b982a75 commit fc7faaf
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions configure
Expand Up @@ -737,8 +737,14 @@ fi
# only disabled if you opt out.
if [ -z "$CFG_VALGRIND" ]
then
CFG_DISABLE_VALGRIND_RPASS=1
putvar CFG_DISABLE_VALGRIND_RPASS
# If the user has explicitly asked for valgrind tests, then fail
if [ -n "$CFG_ENABLE_VALGRIND" ] && [ -n "$CFG_ENABLE_VALGRIND_PROVIDED" ]
then
err "No valgrind present, but valgrind tests explicitly requested"
else
CFG_DISABLE_VALGRIND_RPASS=1
putvar CFG_DISABLE_VALGRIND_RPASS
fi
fi

if [ ! -z "$CFG_GDB" ]
Expand Down

0 comments on commit fc7faaf

Please sign in to comment.