aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2021-10-11 09:23:39 +0300
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2021-10-11 09:23:39 +0300
commitaf16d43af82ad0d05710c42232332a400614d3ea (patch)
tree5b4861c9d3ccc84ab95ebafa88340ab649e3a3d2 /tests
parent71bf522231d2998f1fb183f343c2b1f9dbcd3b15 (diff)
downloadsciteco-af16d43af82ad0d05710c42232332a400614d3ea.tar.gz
fixed crashes when the Q-Reg stack is non-empty at exit
* Test case: sciteco -e '[a' [aEX$$ in interactive mode would also crash. * No longer use a destructor - it was executed after the Q-Reg view was destroyed. * Instead, we now explicitly call teco_qreg_stack_clear() in main(). * Added a regression test case.
Diffstat (limited to 'tests')
-rw-r--r--tests/testsuite.at4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/testsuite.at b/tests/testsuite.at
index ab24504..d9bb67d 100644
--- a/tests/testsuite.at
+++ b/tests/testsuite.at
@@ -89,6 +89,10 @@ AT_SETUP([Memory limiting during spawning])
AT_CHECK([$SCITECO -e "50*1000*1000,2EJ 0,128ED @EC'dd if=/dev/zero'"], 1, ignore, ignore)
AT_CLEANUP
+AT_SETUP([Q-Register stack cleanup])
+AT_CHECK([$SCITECO -e '@<:@a'], 0, ignore, ignore)
+AT_CLEANUP
+
AT_BANNER([Known Bugs])
AT_SETUP([Pattern matching overflow])