Merge branch 'jk/test-asan'
authorJunio C Hamano <gitster@pobox.com>
Mon, 22 Dec 2014 20:28:08 +0000 (12:28 -0800)
committerJunio C Hamano <gitster@pobox.com>
Mon, 22 Dec 2014 20:28:08 +0000 (12:28 -0800)
* jk/test-asan:
t: support clang/gcc AddressSanitizer

1  2 
t/test-lib.sh
diff --combined t/test-lib.sh
index 79e8a33d043e7208c2c1a08ab38fad207049ef4c,3177298ead300e219ef333a530f45bbef98464e3..9acdc8826fff1aabf9df5182a64109b7bd16cd8d
@@@ -140,6 -140,9 +140,9 @@@ els
        }
  fi
  
+ : ${ASAN_OPTIONS=detect_leaks=0}
+ export ASAN_OPTIONS
  # Protect ourselves from common misconfiguration to export
  # CDPATH into the environment
  unset CDPATH
@@@ -169,11 -172,7 +172,11 @@@ _z40=0000000000000000000000000000000000
  LF='
  '
  
 -export _x05 _x40 _z40 LF
 +# UTF-8 ZERO WIDTH NON-JOINER, which HFS+ ignores
 +# when case-folding filenames
 +u200c=$(printf '\342\200\214')
 +
 +export _x05 _x40 _z40 LF u200c
  
  # Each test should start with something like this, after copyright notices:
  #