diff --git a/appveyor/test_task.bat b/appveyor/test_task.bat index fb58e9bc438e6..90ed45b3fe5a2 100644 --- a/appveyor/test_task.bat +++ b/appveyor/test_task.bat @@ -89,6 +89,10 @@ if not exist "%PHP_BUILD_CACHE_ENCHANT_DICT_DIR%\en_US.aff" ( mkdir %LOCALAPPDATA%\enchant\hunspell copy %PHP_BUILD_CACHE_ENCHANT_DICT_DIR%\* %LOCALAPPDATA%\enchant\hunspell +rem prepare for snmp +set MIBDIRS=%DEPS_DIR%\share\mibs +start %DEPS_DIR%\bin\snmpd.exe -C -c %APPVEYOR_BUILD_FOLDER%\ext\snmp\tests\snmpd.conf -Ln + set PHP_BUILD_DIR=%PHP_BUILD_OBJ_DIR%\Release if "%THREAD_SAFE%" equ "1" set PHP_BUILD_DIR=%PHP_BUILD_DIR%_TS @@ -101,7 +105,7 @@ rem work-around for some spawned PHP processes requiring OpenSSL echo extension=php_openssl.dll >> %PHP_BUILD_DIR%\php.ini rem remove ext dlls for which tests are not supported -for %%i in (imap ldap oci8_12c pdo_firebird pdo_oci snmp) do ( +for %%i in (imap ldap oci8_12c pdo_firebird pdo_oci) do ( del %PHP_BUILD_DIR%\php_%%i.dll ) @@ -116,6 +120,8 @@ nmake test TESTS="%OPCACHE_OPTS% -q --offline --show-diff --show-slow 1000 --set set EXIT_CODE=%errorlevel% +taskkill /f /im snmpd.exe + appveyor PushArtifact %TEST_PHP_JUNIT% if %EXIT_CODE% GEQ 1 ( diff --git a/ext/exif/tests/exif004.phpt b/ext/exif/tests/exif004.phpt index 4f1fe947b8113..b5ffc3ec8fa76 100644 --- a/ext/exif/tests/exif004.phpt +++ b/ext/exif/tests/exif004.phpt @@ -1,6 +1,7 @@ --TEST-- Check for exif_read_data, Unicode WinXP tags --EXTENSIONS-- +mbstring exif --SKIPIF-- --ENV-- MIBS=noneXistent diff --git a/ext/snmp/tests/snmp_getvalue.phpt b/ext/snmp/tests/snmp_getvalue.phpt index 2abc61181cf65..f62482d90d395 100644 --- a/ext/snmp/tests/snmp_getvalue.phpt +++ b/ext/snmp/tests/snmp_getvalue.phpt @@ -7,6 +7,7 @@ snmp --SKIPIF-- --FILE-- --FILE-- diff --git a/ext/standard/tests/file/windows_mb_path/test_cp1251_zend_multibyte_0.phpt b/ext/standard/tests/file/windows_mb_path/test_cp1251_zend_multibyte_0.phpt index 51d2b6d8c1893..8b800ed3bdeab 100644 --- a/ext/standard/tests/file/windows_mb_path/test_cp1251_zend_multibyte_0.phpt +++ b/ext/standard/tests/file/windows_mb_path/test_cp1251_zend_multibyte_0.phpt @@ -1,5 +1,7 @@ --TEST-- Test fopen() for reading CP1251 with zend.multibyte +--EXTENSIONS-- +mbstring --INI-- zend.multibyte=1 zend.script_encoding=cp1251 @@ -9,7 +11,7 @@ include __DIR__ . DIRECTORY_SEPARATOR . "util.inc"; skip_if_not_win(); if (getenv("SKIP_SLOW_TESTS")) die("skip slow test"); -skip_if_no_required_exts("mbstring"); +skip_if_no_required_exts(); ?> --CONFLICTS-- diff --git a/ext/standard/tests/file/windows_mb_path/test_cp1251_zend_multibyte_1.phpt b/ext/standard/tests/file/windows_mb_path/test_cp1251_zend_multibyte_1.phpt index 855fd4617b329..31db615f4d2c8 100644 --- a/ext/standard/tests/file/windows_mb_path/test_cp1251_zend_multibyte_1.phpt +++ b/ext/standard/tests/file/windows_mb_path/test_cp1251_zend_multibyte_1.phpt @@ -1,5 +1,7 @@ --TEST-- Test mkdir/rmdir CP1251 with zend.multibyte +--EXTENSIONS-- +mbstring --INI-- zend.multibyte=1 zend.script_encoding=cp1251 @@ -9,7 +11,7 @@ include __DIR__ . DIRECTORY_SEPARATOR . "util.inc"; skip_if_not_win(); if (getenv("SKIP_SLOW_TESTS")) die("skip slow test"); -skip_if_no_required_exts("mbstring"); +skip_if_no_required_exts(); ?> --CONFLICTS-- diff --git a/ext/standard/tests/file/windows_mb_path/test_cp1251_zend_multibyte_2.phpt b/ext/standard/tests/file/windows_mb_path/test_cp1251_zend_multibyte_2.phpt index eb52b78835696..d6075da559c92 100644 --- a/ext/standard/tests/file/windows_mb_path/test_cp1251_zend_multibyte_2.phpt +++ b/ext/standard/tests/file/windows_mb_path/test_cp1251_zend_multibyte_2.phpt @@ -1,5 +1,7 @@ --TEST-- Test fopen() for write CP1251 with zend.multibyte +--EXTENSIONS-- +mbstring --INI-- zend.multibyte=1 zend.script_encoding=cp1251 @@ -9,7 +11,7 @@ include __DIR__ . DIRECTORY_SEPARATOR . "util.inc"; skip_if_not_win(); if (getenv("SKIP_SLOW_TESTS")) die("skip slow test"); -skip_if_no_required_exts("mbstring"); +skip_if_no_required_exts(); ?> --CONFLICTS-- diff --git a/ext/standard/tests/file/windows_mb_path/test_long_path_0.phpt b/ext/standard/tests/file/windows_mb_path/test_long_path_0.phpt index 3705582484cf1..6a5b60f08bbeb 100644 --- a/ext/standard/tests/file/windows_mb_path/test_long_path_0.phpt +++ b/ext/standard/tests/file/windows_mb_path/test_long_path_0.phpt @@ -1,12 +1,14 @@ --TEST-- Basic long path test +--EXTENSIONS-- +mbstring --SKIPIF-- --FILE-- diff --git a/ext/standard/tests/file/windows_mb_path/test_long_path_2.phpt b/ext/standard/tests/file/windows_mb_path/test_long_path_2.phpt index 05982133c1672..09ccebc0c0766 100644 --- a/ext/standard/tests/file/windows_mb_path/test_long_path_2.phpt +++ b/ext/standard/tests/file/windows_mb_path/test_long_path_2.phpt @@ -1,12 +1,14 @@ --TEST-- Basic long path test with file I/O, multibyte path and realpath() check +--EXTENSIONS-- +mbstring --SKIPIF-- --FILE--