Repository navigation
Share expected failures across REGEXP tests - #651
Conversation
Group fixture IDs by source and record common failures once. Check REGEXP_INSTR start and end positions independently so a failure in one result cannot hide a change in the other.
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Explain which MySQL behavior each group exercises, including errors, match positions, replacements, and PCRE version differences.
61c229c to
4fba434
Compare
Summary
The REGEXP tests now share one list of expected failures. Cases are grouped by cause, with comments explaining the differences from MySQL and which checks or PCRE versions they affect. This removes more than 3,500 lines of duplicated test code and case IDs.
Why
REGEXP_INSTR()can return either the start or the end of a match. Previously, a fixture counted as a known failure if either position was wrong. That could hide a regression in the other position.The suite now checks start and end positions independently. For example, ICU case 1243 starts at position 1 in both engines, but MySQL returns 10 for the end and the driver returns 2. The suite now reports a change to either result. The expected failures were checked against the previous lists across seven PCRE versions.
Summary by CodeRabbit