unabbreviate_wm: fix a segfault.

* src/ltlvisit/wmunabbrev.cc: Fix clone() order.
* src/ltltest/equals.cc: Add a mode for unabbreviate_wm().
* src/ltltest/unabbrevwm.test: New file.
* src/ltltest/Makefile.am: Add it.
This commit is contained in:
Alexandre Duret-Lutz 2012-10-23 22:00:17 +02:00
parent aede62d123
commit 1f12ad8765
4 changed files with 50 additions and 6 deletions

View file

@ -41,7 +41,8 @@ check_PROGRAMS = \
syntimpl \
tostring \
tunabbrev \
tunenoform
tunenoform \
unabbrevwm
consterm_SOURCES = consterm.cc
equals_SOURCES = equals.cc
@ -67,6 +68,8 @@ tunabbrev_SOURCES = equals.cc
tunabbrev_CPPFLAGS = $(AM_CPPFLAGS) -DTUNABBREV
tunenoform_SOURCES = equals.cc
tunenoform_CPPFLAGS = $(AM_CPPFLAGS) -DNENOFORM -DTUNABBREV
unabbrevwm_SOURCES = equals.cc
unabbrevwm_CPPFLAGS = $(AM_CPPFLAGS) -DWM
EXTRA_DIST = $(TESTS)
@ -83,6 +86,7 @@ TESTS = \
tunabbrev.test \
nenoform.test \
tunenoform.test \
unabbrevwm.test \
consterm.test \
kind.test \
lenient.test \