t/lib-httpd: pass LSAN_OPTIONS through apache
Just as we instruct Apache to pass through ASAN_OPTIONS (so that server-side Git programs it spawns will respect our options while running the tests), we should do the same with LSAN_OPTIONS. Otherwise trying to collect a list of leaks like: export LSAN_OPTIONS=exitcode=0:log_path=/tmp/lsan make SANITIZE=leak test won't work for http tests (the server-side programs won't log their leaks to the right place, and they'll prematurely die, producing a spurious test failure). Signed-off-by: Jeff King <peff@peff.net> Acked-by: Josh Steadmon <steadmon@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Jeff King committed
May 7, 2019 at 18:30 UTC
d9ef573837f4054b26f792c0ffd7cbb662cb38a6
1 file changed
+1
t/lib-httpd/apache.conf
+1
@@ -76,6 +76,7 @@ PassEnv GIT_VALGRIND
76
PassEnv GIT_VALGRIND_OPTIONS
77
PassEnv GNUPGHOME
78
PassEnv ASAN_OPTIONS
79
+PassEnv LSAN_OPTIONS
80
PassEnv GIT_TRACE
81
PassEnv GIT_CONFIG_NOSYSTEM
82
PassEnv GIT_TEST_SIDEBAND_ALL