Skip to content

Skip tests requiring to load dl_test dynamically #16094

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions ext/opcache/tests/gh8466.phpt
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
--TEST--
Bug GH-8466: ini_get() is optimized out when the option does not exist during compilation
--SKIPIF--
<?php include dirname(__DIR__, 2) . "/dl_test/tests/skip.inc"; ?>
--FILE--
<?php

include dirname(__DIR__, 2) . "/dl_test/tests/skip.inc";
if (extension_loaded('dl_test')) {
exit('Error: dl_test is already loaded');
die('skip dl_test is already loaded');
}

?>
--FILE--
<?php
if (PHP_OS_FAMILY === 'Windows') {
$loaded = dl('php_dl_test.dll');
} else {
Expand Down
8 changes: 3 additions & 5 deletions ext/standard/tests/general_functions/dl-001.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,13 @@ dl(): Loaded extensions properly unregister their ini settings
--SKIPIF--
<?php
include dirname(__DIR__, 3) . "/dl_test/tests/skip.inc";
if (extension_loaded('dl_test')) {
die('skip dl_test is already loaded');
}
if (getenv('SKIP_ASAN')) die('skip fails intermittently on ASAN');
?>
--FILE--
<?php

if (extension_loaded('dl_test')) {
exit('Error: dl_test is already loaded');
}

if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
$loaded = dl('php_dl_test.dll');
} else {
Expand Down
7 changes: 3 additions & 4 deletions ext/standard/tests/general_functions/dl-002.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,13 @@ PHP_DL_TEST_USE_OLD_REGISTER_INI_ENTRIES=1
--SKIPIF--
<?php
include dirname(__DIR__, 3) . "/dl_test/tests/skip.inc";
if (extension_loaded('dl_test')) {
die('skip dl_test is already loaded');
}
if (getenv('SKIP_ASAN')) die('skip fails intermittently on ASAN');
?>
--FILE--
<?php

if (extension_loaded('dl_test')) {
exit('Error: dl_test is already loaded');
}
if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
$loaded = dl('php_dl_test.dll');
} else {
Expand Down
7 changes: 3 additions & 4 deletions ext/standard/tests/general_functions/dl-003.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,13 @@ dl(): Loaded extensions support ini_set()
--SKIPIF--
<?php
include dirname(__DIR__, 3) . "/dl_test/tests/skip.inc";
if (extension_loaded('dl_test')) {
die('skip dl_test is already loaded');
}
if (getenv('SKIP_ASAN')) die('skip fails intermittently on ASAN');
?>
--FILE--
<?php

if (extension_loaded('dl_test')) {
exit('Error: dl_test is already loaded');
}
if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
$loaded = dl('php_dl_test.dll');
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ dl(): use zend_register_functions() directly
--ENV--
PHP_DL_TEST_USE_REGISTER_FUNCTIONS_DIRECTLY=1
--SKIPIF--
<?php require dirname(__DIR__, 3) . "/dl_test/tests/skip.inc"; ?>
--FILE--
<?php

require dirname(__DIR__, 3) . "/dl_test/tests/skip.inc";
if (extension_loaded('dl_test')) {
exit('Error: dl_test is already loaded');
die('skip dl_test is already loaded');
}

?>
--FILE--
<?php
if (PHP_OS_FAMILY === 'Windows') {
$loaded = dl('php_dl_test.dll');
} else {
Expand Down