Skip to content

Commit 9aec68d

Browse files
carlosmngitster
authored andcommitted
t/README: Add a note about running commands under valgrind
The test suite runs valgrind with certain options activated. Add a note saying how to run commands under the same conditions as the test suite does. Signed-off-by: Carlos Martín Nieto <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 6368d9f commit 9aec68d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

t/README

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,13 @@ appropriately before running "make".
9898
not see any output, this option implies --verbose. For
9999
convenience, it also implies --tee.
100100

101+
Note that valgrind is run with the option --leak-check=no,
102+
as the git process is short-lived and some errors are not
103+
interesting. In order to run a single command under the same
104+
conditions manually, you should set GIT_VALGRIND to point to
105+
the 't/valgrind/' directory and use the commands under
106+
't/valgrind/bin/'.
107+
101108
--tee::
102109
In addition to printing the test output to the terminal,
103110
write it to files named 't/test-results/$TEST_NAME.out'.

0 commit comments

Comments
 (0)