Commit e8a0fbc9 authored by Alexandre Duret-Lutz's avatar Alexandre Duret-Lutz
Browse files

* src/ltltest/defs.in (run): Reun valgrind with --leak-check=yes.

* src/ltlparse/ltlparse.yy: Add `%destructor's.
parent 6f88e518
2003-12-30 Alexandre Duret-Lutz <adl@src.lip6.fr>
* src/ltltest/defs.in (run): Reun valgrind with --leak-check=yes.
* src/ltlparse/ltlparse.yy: Add `%destructor's.
2003-12-29 Alexandre Duret-Lutz <adl@src.lip6.fr> 2003-12-29 Alexandre Duret-Lutz <adl@src.lip6.fr>
* src/ltltest/defs.in (run): New function, run valgrind. * src/ltltest/defs.in (run): New function, run valgrind.
......
...@@ -79,6 +79,9 @@ using namespace spot::ltl; ...@@ -79,6 +79,9 @@ using namespace spot::ltl;
%type <ltl> result ltl_formula subformula %type <ltl> result ltl_formula subformula
%destructor { delete $$; } ATOMIC_PROP
%destructor { spot::ltl::destroy($$); } result ltl_formula subformula
%% %%
result: ltl_formula END_OF_INPUT result: ltl_formula END_OF_INPUT
{ result = $$ = $1; { result = $$ = $1;
......
...@@ -55,9 +55,8 @@ run() ...@@ -55,9 +55,8 @@ run()
exitcode=0 exitcode=0
if test -n "$VALGRIND"; then if test -n "$VALGRIND"; then
exec 6>valgrind.err exec 6>valgrind.err
# No --leak-check=yes for now, as it causes parserr.test to fail.
GLIBCPP_FORCE_NEW=1 \ GLIBCPP_FORCE_NEW=1 \
$VALGRIND --logfile-fd=6 -q "$@" || exitcode=$? $VALGRIND --leak-check=yes --logfile-fd=6 -q "$@" || exitcode=$?
cat valgrind.err 1>&2 cat valgrind.err 1>&2
test -z "`sed 1q valgrind.err`" || exit 50 test -z "`sed 1q valgrind.err`" || exit 50
rm -f valgrind.err rm -f valgrind.err
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment