diff options
author | slavomir.katuscak%sun.com <devnull@localhost> | 2007-10-04 14:20:52 +0000 |
---|---|---|
committer | slavomir.katuscak%sun.com <devnull@localhost> | 2007-10-04 14:20:52 +0000 |
commit | 5f56eac7221aef0d5b85bfe946a95587c7063ff2 (patch) | |
tree | 89c65e46c54c093cbb9e6383f54a3d3630ac4b1f | |
parent | 4c8fa13e9ded2d954d7dadc29894ce7aeae31865 (diff) | |
download | nss-hg-5f56eac7221aef0d5b85bfe946a95587c7063ff2.tar.gz |
Bug 398397: Checking for more patterns. r=christophe
-rw-r--r-- | security/nss/tests/memleak/memleak.sh | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/security/nss/tests/memleak/memleak.sh b/security/nss/tests/memleak/memleak.sh index 022bcaa69..67b84ec3a 100644 --- a/security/nss/tests/memleak/memleak.sh +++ b/security/nss/tests/memleak/memleak.sh @@ -481,6 +481,29 @@ parse_logfile_dbx() tbytes=`expr "${tbytes}" + "${lbytes}"` tblocks=`expr "${tblocks}" + 1` fi + + gline=`echo "${line}" | grep "Found .* leaked blocks"` + if [ -n "${gline}" ] ; then + lbytes=`echo "${line}" | sed "s/Found .* leaked blocks with total size \(.*\) bytes.*/\1/"` + tbytes=`expr "${tbytes}" + "${lbytes}"` + lblocks=`echo "${line}" | sed "s/Found \(.*\) leaked blocks.*/\1/"` + tblocks=`expr "${tblocks}" + "${lblocks}"` + fi + + gline=`echo "${line}" | grep "Found block of size"` + if [ -n "${gline}" ] ; then + lbytes=`echo "${line}" | sed "s/Found block of size \(.*\) bytes.*/\1/"` + tbytes=`expr "${tbytes}" + "${lbytes}"` + tblocks=`expr "${tblocks}" + 1` + fi + + gline=`echo "${line}" | grep "Found .* blocks totaling"` + if [ -n "${gline}" ] ; then + lbytes=`echo "${line}" | sed "s/Found .* blocks totaling \(.*\) bytes.*/\1/"` + tbytes=`expr "${tbytes}" + "${lbytes}"` + lblocks=`echo "${line}" | sed "s/Found \(.*\) blocks totaling.*/\1/"` + tblocks=`expr "${tblocks}" + "${lblocks}"` + fi else gline=`echo "${line}" | grep "^Running: "` if [ -n "${gline}" ] ; then |