diff options
author | Andrew J. Schorr <aschorr@telemetry-investments.com> | 2012-04-01 17:30:32 -0400 |
---|---|---|
committer | Andrew J. Schorr <aschorr@telemetry-investments.com> | 2012-04-01 17:30:32 -0400 |
commit | f53d7e7b6afd4fbbc00c89a19d595c29998633c6 (patch) | |
tree | 8fbc897222561ad3fac3f13e8bd7fd2080c65060 | |
parent | bcdea5969e5b16d5c5169488431778a704207a4e (diff) | |
download | egawk-f53d7e7b6afd4fbbc00c89a19d595c29998633c6.tar.gz egawk-f53d7e7b6afd4fbbc00c89a19d595c29998633c6.tar.bz2 egawk-f53d7e7b6afd4fbbc00c89a19d595c29998633c6.zip |
Update valgrind-scan rule.
-rw-r--r-- | test/ChangeLog | 4 | ||||
-rw-r--r-- | test/Makefile.am | 4 | ||||
-rw-r--r-- | test/Makefile.in | 4 |
3 files changed, 8 insertions, 4 deletions
diff --git a/test/ChangeLog b/test/ChangeLog index c16e5ecf..236288e2 100644 --- a/test/ChangeLog +++ b/test/ChangeLog @@ -1,3 +1,7 @@ +2012-04-01 Andrew J. Schorr <aschorr@telemetry-investments.com> + + * Makefile.am (valgrind-scan): Update to match modern valgrind output. + 2011-12-26 John Haque <j.eh@mchsi.com> * badargs.ok: Adjust for new and changed command line options. diff --git a/test/Makefile.am b/test/Makefile.am index 943dbd9f..afd98299 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -1483,8 +1483,8 @@ valgrind-scan: function show() {if (cmd) {printf "%s: %s\n",FILENAME,cmd; cmd = ""}; \ printf "\t%s\n",$$0}; \ {$$1 = ""}; \ - /Prog and args are:/ {incmd = 1; cmd = ""; next}; \ - incmd {if (NF == 1) incmd = 0; else {cmd = (cmd $$0); next}}; \ + $$2 == "Command:" {incmd = 1; $$2 = ""; cmd = $$0; next}; \ + incmd {if (/Parent PID:/) incmd = 0; else {cmd = (cmd $$0); next}}; \ /ERROR SUMMARY:/ && !/: 0 errors from 0 contexts/ {show()}; \ /definitely lost:/ && !/: 0 bytes in 0 blocks/ {show()}; \ /possibly lost:/ && !/: 0 bytes in 0 blocks/ {show()}; \ diff --git a/test/Makefile.in b/test/Makefile.in index fa48f677..075d52f1 100644 --- a/test/Makefile.in +++ b/test/Makefile.in @@ -3055,8 +3055,8 @@ valgrind-scan: function show() {if (cmd) {printf "%s: %s\n",FILENAME,cmd; cmd = ""}; \ printf "\t%s\n",$$0}; \ {$$1 = ""}; \ - /Prog and args are:/ {incmd = 1; cmd = ""; next}; \ - incmd {if (NF == 1) incmd = 0; else {cmd = (cmd $$0); next}}; \ + $$2 == "Command:" {incmd = 1; $$2 = ""; cmd = $$0; next}; \ + incmd {if (/Parent PID:/) incmd = 0; else {cmd = (cmd $$0); next}}; \ /ERROR SUMMARY:/ && !/: 0 errors from 0 contexts/ {show()}; \ /definitely lost:/ && !/: 0 bytes in 0 blocks/ {show()}; \ /possibly lost:/ && !/: 0 bytes in 0 blocks/ {show()}; \ |