* src/ltltest/defs.in (run): Reun valgrind with --leak-check=yes.
* src/ltlparse/ltlparse.yy: Add `%destructor's.
This commit is contained in:
parent
6f88e518a9
commit
e8a0fbc9a7
3 changed files with 9 additions and 2 deletions
|
|
@ -1,3 +1,8 @@
|
|||
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>
|
||||
|
||||
* src/ltltest/defs.in (run): New function, run valgrind.
|
||||
|
|
|
|||
|
|
@ -79,6 +79,9 @@ using namespace spot::ltl;
|
|||
|
||||
%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 = $$ = $1;
|
||||
|
|
|
|||
|
|
@ -55,9 +55,8 @@ run()
|
|||
exitcode=0
|
||||
if test -n "$VALGRIND"; then
|
||||
exec 6>valgrind.err
|
||||
# No --leak-check=yes for now, as it causes parserr.test to fail.
|
||||
GLIBCPP_FORCE_NEW=1 \
|
||||
$VALGRIND --logfile-fd=6 -q "$@" || exitcode=$?
|
||||
$VALGRIND --leak-check=yes --logfile-fd=6 -q "$@" || exitcode=$?
|
||||
cat valgrind.err 1>&2
|
||||
test -z "`sed 1q valgrind.err`" || exit 50
|
||||
rm -f valgrind.err
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue