removed tailing whitespace and clean MemoryLeakTest

pull/17862/head
Jerry 6 years ago
parent 63544ea3ae
commit 28145c30b7
  1. 12
      src/php/bin/run_tests.sh
  2. 2210
      src/php/tests/MemoryLeakTest/MemoryLeakTest.php

@ -28,10 +28,10 @@ php $extension_dir -d max_execution_time=300 $(which phpunit) -v --debug \
php $extension_dir -d max_execution_time=300 $(which phpunit) -v --debug \
../tests/unit_tests/PersistentChannelTests
export ZEND_DONT_UNLOAD_MODULES=1
export USE_ZEND_ALLOC=0
# Detect whether valgrind is executable
if [ -x "$(command -v valgrind)" ]; then
valgrind --error-exitcode=10 --leak-check=yes php $extension_dir -d max_execution_time=300 \
../tests/MemoryLeakTest/MemoryLeakTest.php
export ZEND_DONT_UNLOAD_MODULES=1
export USE_ZEND_ALLOC=0
# Detect whether valgrind is executable
if [ -x "$(command -v valgrind)" ]; then
valgrind --error-exitcode=10 --leak-check=yes php $extension_dir -d max_execution_time=300 \
../tests/MemoryLeakTest/MemoryLeakTest.php
fi

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save