commit 3fe0f7bac05437e5cf0f8ca86c0584a9bcdfca3d
Author: Kornel Benko <[email protected]>
Date: Sun Mar 22 19:04:16 2015 +0100
Test for undo crash in math env.
According to fix #9432, Scott found a new crash
1. start a new LyX document, english GUI
2. alt+m f to create a fraction
3. alt+m r to insert a root
4. undo
diff --git a/development/autotests/bug-math-undo-in.txt
b/development/autotests/bug-math-undo-in.txt
new file mode 100644
index 0000000..bb78736
--- /dev/null
+++ b/development/autotests/bug-math-undo-in.txt
@@ -0,0 +1,10 @@
+# Test undo of \sqrt in \frac
+#
+
+Lang C
+TestBegin test.lyx > lyx-log.txt 2>&1
+KK: \Amm\\frac \\sqrt \Cz
+KK: \[Return]
+TestEnd
+Lang C
+Assert ! pcregrep -M 'SIGSEGV' lyx-log.txt