bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Support for options in valgrind-tests


From: Reuben Thomas
Subject: Support for options in valgrind-tests
Date: Sat, 12 Mar 2011 17:41:44 +0000

Another day, another nice surprise from gnulib: it supports valgrind,
so I can remove my own code for that...only, no I can't, because I add
options (I add --error-exitcode=1 --leak-check=full).

So, two alternative suggestions:

1. Agree that these options are must-haves (rationale: one's code
shouldn't leak memory, so turn on full leak checking to make sure;
tests that cause valgrind errors should count as failures).

2. Add the possibility for options somehow. Is there a standard way in
which like things are achieved? I would imagine setting VALGRIND to
"VALGRIND -q \$(VALGRIND_OPTIONS)" so then I can just set
VALGRIND_OPTIONS in Makefile.am if I want to pass options, but maybe
that's a bad approach.

-- 
http://rrt.sc3d.org



reply via email to

[Prev in Thread] Current Thread [Next in Thread]