Skip to content

Commit 668dfa9

Browse files
committed
test-lib: add "strip_path_prefix" to XSAN_OPTIONS
Change the stack traces emitted by the tests under LSAN and ASAN from showing stack frames like: #0 0x4323b8 in malloc (/home/avar/g/git/t/helper/test-tool+0x4323b8) To strip out the path to the build directory, so we'll instead emit: #0 0x4323b8 in malloc (t/helper/test-tool+0x4323b8) Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
1 parent e87aa68 commit 668dfa9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

t/test-lib.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ prepend_var () {
5050

5151
# If [AL]SAN is in effect we want to abort so that we notice problems.
5252
prepend_var XSAN_OPTIONS : abort_on_error=1
53+
prepend_var XSAN_OPTIONS : strip_path_prefix=\"$GIT_BUILD_DIR/\"
5354

5455
# If we were built with ASAN, it may complain about leaks
5556
# of program-lifetime variables. Disable it by default to lower

0 commit comments

Comments
 (0)