diff options
| author | Nikita Popov <nikita.ppv@gmail.com> | 2020-10-21 15:01:47 +0200 |
|---|---|---|
| committer | Nikita Popov <nikita.ppv@gmail.com> | 2020-10-30 17:29:33 +0100 |
| commit | 1b3b430f478c785c88655533518a66b88ece060a (patch) | |
| tree | da76d216cbf9cabf9754002705058dfa4377f9ca /ext/pcntl | |
| parent | ada2a55e07bb413c71d371f77a91e9454a7d564a (diff) | |
| download | php-git-1b3b430f478c785c88655533518a66b88ece060a.tar.gz | |
Add --repeat testing mode
This testing mode executes the test multiple times in the same
process (but in different requests). It is primarily intended to
catch tracing JIT bugs, but also catches state leaks across
requests.
Closes GH-6365.
Diffstat (limited to 'ext/pcntl')
| -rw-r--r-- | ext/pcntl/tests/002.phpt | 1 | ||||
| -rw-r--r-- | ext/pcntl/tests/pcntl_unshare_01.phpt | 1 | ||||
| -rw-r--r-- | ext/pcntl/tests/pcntl_unshare_02.phpt | 1 | ||||
| -rw-r--r-- | ext/pcntl/tests/pcntl_unshare_03.phpt | 1 |
4 files changed, 4 insertions, 0 deletions
diff --git a/ext/pcntl/tests/002.phpt b/ext/pcntl/tests/002.phpt index 68b2643092..254da86136 100644 --- a/ext/pcntl/tests/002.phpt +++ b/ext/pcntl/tests/002.phpt @@ -7,6 +7,7 @@ pcntl: pcntl_sigprocmask(), pcntl_sigwaitinfo(), pcntl_sigtimedwait() elseif (!function_exists('pcntl_sigwaitinfo') or !function_exists('pcntl_sigtimedwait')) die('skip required functionality is not available'); elseif (!defined('CLD_EXITED')) die('skip CLD_EXITED not defined'); elseif (getenv('SKIP_ASAN')) die('skip Fails intermittently under asan/msan'); + elseif (getenv("SKIP_REPEAT")) die("skip cannot be repeated"); ?> --FILE-- <?php diff --git a/ext/pcntl/tests/pcntl_unshare_01.phpt b/ext/pcntl/tests/pcntl_unshare_01.phpt index fcbf112e4d..6eb5a20bdd 100644 --- a/ext/pcntl/tests/pcntl_unshare_01.phpt +++ b/ext/pcntl/tests/pcntl_unshare_01.phpt @@ -9,6 +9,7 @@ if (!defined("CLONE_NEWUSER")) die("skip flag unavailable"); if (@pcntl_unshare(CLONE_NEWUSER) == false && pcntl_get_last_error() == PCNTL_EPERM) { die("skip Insufficient privileges to use CLONE_NEWUSER"); } +if (getenv("SKIP_REPEAT")) die("skip cannot be repeated"); ?> --FILE-- <?php diff --git a/ext/pcntl/tests/pcntl_unshare_02.phpt b/ext/pcntl/tests/pcntl_unshare_02.phpt index fdf07bc81c..3e90a3920c 100644 --- a/ext/pcntl/tests/pcntl_unshare_02.phpt +++ b/ext/pcntl/tests/pcntl_unshare_02.phpt @@ -15,6 +15,7 @@ if (posix_getuid() !== 0 && if (@pcntl_unshare(CLONE_NEWPID) == false && pcntl_get_last_error() == PCNTL_EPERM) { die("skip Insufficient privileges for CLONE_NEWPID"); } +if (getenv("SKIP_REPEAT")) die("skip cannot be repeated"); ?> --FILE-- <?php diff --git a/ext/pcntl/tests/pcntl_unshare_03.phpt b/ext/pcntl/tests/pcntl_unshare_03.phpt index f82f27b719..8e9bd793e6 100644 --- a/ext/pcntl/tests/pcntl_unshare_03.phpt +++ b/ext/pcntl/tests/pcntl_unshare_03.phpt @@ -15,6 +15,7 @@ if (@pcntl_unshare(CLONE_NEWNET) == false && pcntl_get_last_error() == PCNTL_EPE die("skip Insufficient privileges for CLONE_NEWPID"); } if (getenv("SKIP_ONLINE_TESTS")) die("skip online test"); +if (getenv("SKIP_REPEAT")) die("skip cannot be repeated"); ?> --FILE-- <?php |
