Skip to content

Commit

Permalink
pcre2: fix test failures on targets that don't support JIT
Browse files Browse the repository at this point in the history
This commit uses `jit_if_available` instead of `jit` in the tests, allowing them
to fall back to non-JIT compilation on targets that don't support JIT.

PR #41
  • Loading branch information
heiher authored Jul 25, 2024
1 parent 2a6f6ec commit aea0175
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bytes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1343,7 +1343,7 @@ mod tests {
let re = RegexBuilder::new()
.extended(true)
.utf(true)
.jit(true)
.jit_if_available(true)
.build(pattern)
.unwrap();
let matched = re.find(hay.as_bytes()).unwrap().unwrap();
Expand All @@ -1364,7 +1364,7 @@ mod tests {
let re = RegexBuilder::new()
.extended(true)
.utf(true)
.jit(true)
.jit_if_available(true)
.build(pattern)
.unwrap();
let matched = re.find(hay.as_bytes()).unwrap().unwrap();
Expand Down

0 comments on commit aea0175

Please sign in to comment.