summaryrefslogtreecommitdiff
path: root/doc/HACKING
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2015-10-21 10:00:05 -0400
committerNick Mathewson <nickm@torproject.org>2015-10-21 10:00:05 -0400
commit34b4da709d04a64e52f023f7fa54fdbab270546f (patch)
tree45936cef9a06a1ffd933f941c6492d69de578b28 /doc/HACKING
parentb7941cbfbb5a121425d9d0c5e1f903efd563a173 (diff)
downloadtor-34b4da709d04a64e52f023f7fa54fdbab270546f.tar.gz
tor-34b4da709d04a64e52f023f7fa54fdbab270546f.zip
Fix a bunch more memory leaks in the tests.
Diffstat (limited to 'doc/HACKING')
-rw-r--r--doc/HACKING/WritingTests.txt4
1 files changed, 3 insertions, 1 deletions
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