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