Tracking and printing of origins of memory leaks to *.log.

Tim
From f2eb5a855922ec0be49b8e4507e013414cc63114 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Tim Rühsen?= <[email protected]>
Date: Tue, 30 Sep 2014 16:13:38 +0200
Subject: [PATCH] track origins when testing with valgrind

---
 testenv/ChangeLog         | 4 ++++
 testenv/test/base_test.py | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/testenv/ChangeLog b/testenv/ChangeLog
index 0149368..f477314 100644
--- a/testenv/ChangeLog
+++ b/testenv/ChangeLog
@@ -1,3 +1,7 @@
+2014-09-30  Tim Ruehsen  <[email protected]>
+
+	* test/base_test.py: Add --track-origins=yes to valgrind testing
+
 2014-08-08  Darshit Shah  <[email protected]>

 	* conf/__init__.py: Add extra newline according to PEP8
diff --git a/testenv/test/base_test.py b/testenv/test/base_test.py
index 8bf8ea5..14143c2 100644
--- a/testenv/test/base_test.py
+++ b/testenv/test/base_test.py
@@ -101,7 +101,7 @@ class BaseTest:
         wget_options = '--debug --no-config %s' % self.wget_options

         if os.getenv("VALGRIND_TESTS"):
-            valgrind_test = "valgrind --error-exitcode01 --leak-check=full"
+            valgrind_test = "valgrind --error-exitcode01 --leak-check=full --track-origins=yes"
         else:
             valgrind_test = ""
         cmd_line = '%s %s %s ' % (valgrind_test, wget_path, wget_options)
--
2.1.1

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to