Commit 9a3f2285f59 for php
commit 9a3f2285f598396a0fcf2fb63a7c5d6a6305181a
Author: Ilija Tovilo <ilija.tovilo@me.com>
Date: Tue Nov 17 18:29:51 2026 +0100
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
diff --git a/run-tests.php b/run-tests.php
index f684caf932c..76c16b40c7a 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');
+ }
}
}