valgrind: suppressions file might not be in current directory

This commit is contained in:
Jeff Kaufman
2013-11-25 10:23:25 -05:00
parent 0bafd6b7e0
commit be4d263d10
+3 -2
View File
@@ -174,8 +174,9 @@ check_not_simple grep @@ $PAGESPEED_CONF
# start nginx with new config
if $USE_VALGRIND; then
(valgrind -q --leak-check=full --gen-suppressions=all --show-possibly-lost=no \
--log-file=$TEST_TMP/valgrind.log --suppressions=valgrind.sup \
(valgrind -q --leak-check=full --gen-suppressions=all \
--show-possibly-lost=no --log-file=$TEST_TMP/valgrind.log \
--suppressions="$this_dir/valgrind.sup" \
$NGINX_EXECUTABLE -c $PAGESPEED_CONF) & VALGRIND_PID=$!
trap "echo 'terminating valgrind!' && kill -s sigterm $VALGRIND_PID" EXIT
echo "Wait until nginx is ready to accept connections"