Skip to content

Commit d9ef573

Browse files
peffgitster
authored andcommitted
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 <[email protected]> Acked-by: Josh Steadmon <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent aeb582a commit d9ef573

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

t/lib-httpd/apache.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ PassEnv GIT_VALGRIND
7676
PassEnv GIT_VALGRIND_OPTIONS
7777
PassEnv GNUPGHOME
7878
PassEnv ASAN_OPTIONS
79+
PassEnv LSAN_OPTIONS
7980
PassEnv GIT_TRACE
8081
PassEnv GIT_CONFIG_NOSYSTEM
8182
PassEnv GIT_TEST_SIDEBAND_ALL

0 commit comments

Comments
 (0)