ignore-valgrind-undef-errors from php7.3

pull/22908/head
Hannah Shi 5 years ago
parent fc7233e8f0
commit 290d187f60
  1. 4
      src/php/bin/run_tests.sh
  2. 6
      src/php/docker/php-future/Dockerfile

@ -29,7 +29,8 @@ for arg in "$@"
do
if [[ "$arg" == "--skip-persistent-channel-tests" ]]; then
SKIP_PERSISTENT_CHANNEL_TESTS=true
break
elif [[ "$arg" == "--ignore-valgrind-undef-errors" ]]; then
VALGRIND_UNDEF_VALUE_ERRORS="--undef-value-errors=no"
fi
done
@ -43,6 +44,7 @@ export USE_ZEND_ALLOC=0
# Detect whether valgrind is executable
if [ -x "$(command -v valgrind)" ]; then
$(which valgrind) --error-exitcode=10 --leak-check=yes \
$VALGRIND_UNDEF_VALUE_ERRORS \
$(which php) $extension_dir -d max_execution_time=300 \
../tests/MemoryLeakTest/MemoryLeakTest.php
fi

@ -12,11 +12,11 @@
# See the License for the specific language governing permissions and
# limitations under the License.
FROM php:7.4.0RC1-buster
FROM php:7.4.5-buster
RUN apt-get -qq update && apt-get -qq install -y \
autoconf automake git libtool pkg-config \
wget zlib1g-dev
valgrind wget zlib1g-dev
ARG MAKEFLAGS=-j8
@ -36,4 +36,4 @@ RUN pear package && \
find . -name grpc-*.tgz | xargs -I{} pecl install {}
CMD ["/github/grpc/src/php/bin/run_tests.sh", "--skip-persistent-channel-tests"]
CMD ["/github/grpc/src/php/bin/run_tests.sh", "--skip-persistent-channel-tests", "--ignore-valgrind-undef-errors"]

Loading…
Cancel
Save