diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/testsuite.at | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/tests/testsuite.at b/tests/testsuite.at index fc8ab37..a97e0f8 100644 --- a/tests/testsuite.at +++ b/tests/testsuite.at @@ -519,6 +519,24 @@ AT_SETUP([Search accesses wrong Q-Register table]) TE_CHECK([[@^U.#xx/123/ @^Um{:@S/^EG.#xx/$} :Mm Mm]], 1, ignore, ignore) AT_CLEANUP +# NOTE: This used to be a bug in the old GRegex-based implementation, +# which surfaced only with specific build options of Glib's +# PCRE which was not predictable. +# It segfaulted at least on Ubuntu 20.04 (libpcre3 v2:8.39). +# It could fail because the memory limit is exceeed, +# but not in this case since the match string isn't too large. +AT_SETUP([Pattern matching overflow]) +# NOTE: Creating very long lines would currently be ineffective +# at least in UTF-8 mode. +TE_CHECK([[100000<@I"^J">J @S"^EM^X"]], 0, ignore, ignore) +AT_CLEANUP + +AT_SETUP([Block-wise backwards search]) +# Failed when using GRegex (PCRE), which had broken support for partial matches. +# This is not an issue with terex. +TE_CHECK([[2,8EJ @I/ABCD/ -:@S/BC/"F(0/0)' .-3"N(0/0)' ^S+2"N(0/0)']], 0, ignore, ignore) +AT_CLEANUP + AT_SETUP([Invalid buffer ids]) TE_CHECK([[42@EB//]], 1, ignore, ignore) TE_CHECK([[23@EW//]], 1, ignore, ignore) @@ -659,24 +677,6 @@ TE_CHECK([[| (0/0) ']], 1, ignore, ignore) AT_XFAIL_IF(true) AT_CLEANUP -# NOTE: This bug depends on specific build options of Glib's -# PCRE which is not predictable. -# It segfaults at least on Ubuntu 20.04 (libpcre3 v2:8.39). -#AT_SETUP([Pattern matching overflow]) -## Should no longer dump core. -## It could fail because the memory limit is exceeed, -## but not in this case since the match string isn't too large. -#TE_CHECK([[100000<@I"X">J @S"^EM^X"]], 0, ignore, ignore) -#AT_XFAIL_IF(true) -#AT_CLEANUP - -AT_SETUP([Block-wise backwards search]) -# Crashes are caused by a glib bug when a match falls on block boundaries. -# See teco_do_search_backwards() -TE_CHECK([[2,8EJ @I/ABCD/ -:@S/BC/"F(0/0)' .-3"N(0/0)' ^S+2"N(0/0)']], 0, ignore, ignore) -AT_XFAIL_IF(true) -AT_CLEANUP - AT_SETUP([Backtracking in patterns]) # ^ES should be greedy and posessive TE_CHECK([[@I/ /J :@S/^ES^X/"S(0/0)']], 0, ignore, ignore) |
