From 34b4da709d04a64e52f023f7fa54fdbab270546f Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Wed, 21 Oct 2015 10:00:05 -0400 Subject: Fix a bunch more memory leaks in the tests. --- doc/HACKING/WritingTests.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'doc/HACKING') diff --git a/doc/HACKING/WritingTests.txt b/doc/HACKING/WritingTests.txt index 977b8369f2..d2e05dd3a0 100644 --- a/doc/HACKING/WritingTests.txt +++ b/doc/HACKING/WritingTests.txt @@ -329,7 +329,9 @@ into test/slow if it genuinely needs to be run. Tests should not alter global state unless they run with TT_FORK: Tests should not require other tests to be run before or after them. -Tests should not leak memory or other resources. +Tests should not leak memory or other resources. To find out if your tests +are leaking memory, run them under valgrind (see HelpfulTools.txt for more +information on how to do that). When possible, tests should not be over-fit to the implementation. That is, the test should verify that the documented behavior is implemented, but -- cgit v1.2.3-54-g00ecf