diff options
author | Andrew Gallant <jamslam@gmail.com> | 2021-06-12 16:22:30 -0400 |
---|---|---|
committer | Andrew Gallant <jamslam@gmail.com> | 2021-06-12 16:22:30 -0400 |
commit | 7ce66f73cf7e76e9f2557922ac8e650eb02cf4ed (patch) | |
tree | bf04d93c963ca8370e384097352ced0989183825 /tests | |
parent | bc76a30c23317526441a76f99ff397f65acea607 (diff) |
regex: update regression test
Sadly, PCRE2 has different behavior (but doesn't panic). We should look
into that, but for now, this is good enough.
Also, update the CHANGELOG.
Ref #1891
Diffstat (limited to 'tests')
-rw-r--r-- | tests/regression.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/regression.rs b/tests/regression.rs index e35e953f..e6af26df 100644 --- a/tests/regression.rs +++ b/tests/regression.rs @@ -1032,6 +1032,13 @@ rgtest!(r1878, |dir: Dir, _: TestCommand| { // See: https://github.com/BurntSushi/ripgrep/issues/1891 rgtest!(r1891, |dir: Dir, mut cmd: TestCommand| { + // TODO: Sadly, PCRE2 has different behavior here. Not clear why. We should + // look into this and see if there's a fix needed at the regex engine + // level. + if dir.is_pcre2() { + return; + } + dir.create("test", "\n##\n"); // N.B. We use -o here to force the issue to occur, which seems to only // happen when each match needs to be detected. |