diff options
| author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2024-12-22 18:08:14 +0300 |
|---|---|---|
| committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2024-12-22 19:33:48 +0300 |
| commit | c293f725e55661ae690b52d5e8339e48b07a6a85 (patch) | |
| tree | ca4a3162950ec4cdccccd09b6c38175acacbfec6 /tests | |
| parent | c174f9be70855e89f606547cfa5471942d238038 (diff) | |
fixed crashes while setting special Q-Registers with EU (string-building characters)
* The teco_qreg_vtable_t::get_string() method should support returning the
length optionally (may be NULL).
This already worked with teco_doc_get_string(), even though it wasn't documented,
and therefore didn't cause problems with regular Q-Registers.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/testsuite.at | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/testsuite.at b/tests/testsuite.at index ffb3941..f17a711 100644 --- a/tests/testsuite.at +++ b/tests/testsuite.at @@ -244,6 +244,15 @@ AT_CHECK([$SCITECO -e '@I/^E@a/'], 0, ignore, ignore) AT_CHECK([$SCITECO -e '@I/^ENa/'], 0, ignore, ignore) AT_CLEANUP +AT_SETUP([Setting special Q-Registers with EU]) +# NOTE: The clipboard registers also suffered from this, but the test suite +# should not influence the clipboard (and it's not in Curses anyway). +# +# Should fail, but not crash +AT_CHECK([$SCITECO -e '@EU*""'], 1, ignore, ignore) +AT_CHECK([$SCITECO -e '@EU$"."'], 0, ignore, ignore) +AT_CLEANUP + AT_SETUP([Empty help topic]) AT_CHECK([$SCITECO -e '@?//'], 1, ignore, ignore) AT_CLEANUP |
