summaryrefslogtreecommitdiffstats
path: root/tools/valgrind_test_cleaner.pl
diff options
context:
space:
mode:
authorMichal 'vorner' Vaner <michal.vaner@nic.cz>2011-02-25 19:34:17 +0100
committerMichal 'vorner' Vaner <michal.vaner@nic.cz>2011-02-25 19:34:17 +0100
commitf79cea1f5a7ce45498a7a94cb5ed9aae6dfe1a7f (patch)
tree503e9879b32504d714396323cd619e8a0036b114 /tools/valgrind_test_cleaner.pl
parent[trac614] Add a cleaner of the valgrind output (diff)
downloadkea-f79cea1f5a7ce45498a7a94cb5ed9aae6dfe1a7f.tar.xz
kea-f79cea1f5a7ce45498a7a94cb5ed9aae6dfe1a7f.zip
[trac614] Some documentation for the scripts
Only in comments at the beginning of them, but it should be enough.
Diffstat (limited to 'tools/valgrind_test_cleaner.pl')
-rwxr-xr-xtools/valgrind_test_cleaner.pl12
1 files changed, 12 insertions, 0 deletions
diff --git a/tools/valgrind_test_cleaner.pl b/tools/valgrind_test_cleaner.pl
index 7f8f432eeb..5ebf297f43 100755
--- a/tools/valgrind_test_cleaner.pl
+++ b/tools/valgrind_test_cleaner.pl
@@ -2,6 +2,18 @@
use strict;
use warnings;
+# This script can be used on a valgrind output of the tests (from
+# tests_in_valgrind.sh) to remove some uninteresting error reports.
+# Since we care about the tested application not leaking/crashing, not
+# the tests itself, memory leaks that are caused only by the tests
+# (eg. unreleased test data), we don't want to have logs full of them.
+#
+# This script does some heuristics to eliminate some of such error
+# reports. Currently, the memory lost reports whose stack contains
+# no call from the real application are suppressed.
+#
+# Of course, the rest still can contain many uninteresting entries.
+
my ($block, $blockOK);
sub endBlock(_) {