Skip to content

Commit 48daadc

Browse files
committed
regex-automata/test: ignore some tests in 32-bit targets
One of these tests (the captures one) is very specific to 64-bit since it uses a numeric literal that is bigger than what can be fit into 32 bits. The other two tests, for determinize_size_limit, are not specific to 64-bit targets but do somewhat depend on the specific memory usages in play. We could probably find some limits that work for both 32-bit and 64-bit, but since 'cross' doesn't run doc tests, doing this is pretty annoying. So just ignore the tests. Fixes #1039
1 parent 961a882 commit 48daadc

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

regex-automata/src/dfa/dense.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -879,6 +879,7 @@ impl Config {
879879
///
880880
/// ```
881881
/// # if cfg!(miri) { return Ok(()); } // miri takes too long
882+
/// # if !cfg!(target_pointer_width = "64") { return Ok(()); } // see #1039
882883
/// use regex_automata::{dfa::{dense, Automaton}, Input};
883884
///
884885
/// // 600KB isn't enough!
@@ -912,6 +913,7 @@ impl Config {
912913
///
913914
/// ```
914915
/// # if cfg!(miri) { return Ok(()); } // miri takes too long
916+
/// # if !cfg!(target_pointer_width = "64") { return Ok(()); } // see #1039
915917
/// use regex_automata::{
916918
/// dfa::{dense, Automaton, StartKind},
917919
/// Anchored, Input,

regex-automata/src/util/captures.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -433,6 +433,7 @@ impl Captures {
433433
///
434434
/// ```
435435
/// # if cfg!(miri) { return Ok(()); } // miri takes too long
436+
/// # if !cfg!(target_pointer_width = "64") { return Ok(()); } // see #1039
436437
/// use regex_automata::{nfa::thompson::pikevm::PikeVM, Span, Match};
437438
///
438439
/// let re = PikeVM::new(r"^(?P<first>\pL+)\s+(?P<last>\pL+)$")?;

0 commit comments

Comments
 (0)