[php-src] PHP-8.6: Auto-skip opt_debug_level tests under file cache
| From: | Ilija Tovilo | Date: | Wed, 18 Nov 2026 15:44:54 +0000 |
| Subject: | [php-src] PHP-8.6: Auto-skip opt_debug_level tests under file cache | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-143833@lists.php.net to get a copy of this message | ||
Author: Ilija Tovilo (iluuu1994)
Date: 2026-11-18T16:43:43+01:00
Commit: https://github.com/php/php-src/commit/9a3f2285f598396a0fcf2fb63a7c5d6a6305181a
Raw diff: https://github.com/php/php-src/commit/9a3f2285f598396a0fcf2fb63a7c5d6a6305181a.diff
Auto-skip opt_debug_level tests under file cache
These are normally located under ext/opcache/tests, which are entirely skipped
under file cache. However, people keep forgetting this rule and create
opt_debug_level tests in other directories, so skip those as well.
Closes GH-25527
Changed paths:
M run-tests.php
Diff:
diff --git a/run-tests.php b/run-tests.php
index f684caf932ce..76c16b40c7a1 100755
--- a/run-tests.php
+++ b/run-tests.php
@@ -2121,6 +2121,9 @@ function run_test(string $php, $file, array $env): string
if ($num_repeats > 1) {
return skip_test($tested, $tested_file, $shortname, 'opt_debug_level tests are
not repeatable');
}
+ if ($file_cache) {
+ return skip_test($tested, $tested_file, $shortname, 'opt_debug_level tests
don\'t work with file cache');
+ }
}
}