From bcdea5969e5b16d5c5169488431778a704207a4e Mon Sep 17 00:00:00 2001 From: "Andrew J. Schorr" Date: Sun, 1 Apr 2012 17:15:50 -0400 Subject: Add valgrind-noleak target. --- ChangeLog | 6 ++++++ Makefile.am | 5 +++++ Makefile.in | 5 +++++ TODO.xgawk | 4 ++-- 4 files changed, 18 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index f9786dfc..ec3279ea 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2012-04-01 Andrew J. Schorr + + * TODO.xgawk: Move valgrind-noleak item into "done" section. + * Makefile.am (valgrind-noleak): Add new valgrind rule that omits + the "--leak-check=full" option to help spot more serious problems. + 2012-04-01 Andrew J. Schorr * TODO.xgawk: Move ERRNO item into "done" section. diff --git a/Makefile.am b/Makefile.am index 11932aa4..d1bf1e65 100644 --- a/Makefile.am +++ b/Makefile.am @@ -212,3 +212,8 @@ valgrind: cd test; rm -f log.[0-9]*; \ make check AWK="valgrind --leak-check=full --log-file=log.%p ../gawk"; \ make valgrind-scan + +valgrind-noleak: + cd test; rm -f log.[0-9]*; \ + make check AWK="valgrind --log-file=log.%p ../gawk"; \ + make valgrind-scan diff --git a/Makefile.in b/Makefile.in index d5c633c1..ad795066 100644 --- a/Makefile.in +++ b/Makefile.in @@ -1120,6 +1120,11 @@ valgrind: make check AWK="valgrind --leak-check=full --log-file=log.%p ../gawk"; \ make valgrind-scan +valgrind-noleak: + cd test; rm -f log.[0-9]*; \ + make check AWK="valgrind --log-file=log.%p ../gawk"; \ + make valgrind-scan + # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: diff --git a/TODO.xgawk b/TODO.xgawk index 56b13e11..7a06b0fb 100644 --- a/TODO.xgawk +++ b/TODO.xgawk @@ -19,6 +19,8 @@ Done: extern void update_ERRNO_string(const char *string, enum errno_translate); extern void unset_ERRNO(void); +- Add valgrind-noleak target. + To do (not necessarily in this order): @@ -32,8 +34,6 @@ To do (not necessarily in this order): pass a pointer to a structure into dlload that contains the addresses of all variables and functions to which the extension may need access. -- Add valgrind-noleak target. - - Enable default ".awk" search in io.c:find_source(). The simple change is to add this code inline in io.c: #ifndef DEFAULT_FILETYPE -- cgit v1.2.3