Skip to content

Commit 0f3e741

Browse files
committed
[skip ci] Suppress opcache debugging tools in gcovr
Suppress zend_dump.c and ssa_integrity.c. Also suppress the calls to zend_dump_op_array() and the unreached branches.
1 parent 188d520 commit 0f3e741

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

gcovr.cfg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,11 @@ exclude = ext/mbstring/libmbfl/.*
1313
exclude = ext/opcache/jit/ir/.*
1414
exclude = ext/pcre/pcre2lib/.*
1515
exclude = ext/uri/uriparser/.*
16+
exclude = Zend/Optimizer/ssa_integrity\.c
17+
exclude = Zend/Optimizer/zend_dump\.c
1618

1719
# These patterns have implicit ^/$ anchors.
1820
exclude-lines-by-pattern = .*\b(ZEND_PARSE_PARAMETERS_(START|END|NONE)|Z_PARAM_).*
1921
exclude-lines-by-pattern = \s*(default:\s*)?ZEND_UNREACHABLE\(\);\s*
22+
exclude-lines-by-pattern = \s*if \(ctx->debug_level & ZEND_DUMP_\w+\) \{\s*
23+
exclude-lines-by-pattern = \s*zend_dump_op_array\(.*\);\s*

0 commit comments

Comments
 (0)