mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-09 07:08:02 +02:00
clients/tests: set "UBSAN_OPTIONS" to abort tests and set "ASAN_OPTIONS=detect_leaks=1"
This commit is contained in:
parent
c6234e114b
commit
5198bce5ee
1 changed files with 3 additions and 2 deletions
|
|
@ -414,11 +414,12 @@ class Configuration:
|
||||||
v = os.environ.get(name, None)
|
v = os.environ.get(name, None)
|
||||||
if v is None:
|
if v is None:
|
||||||
if name == ENV_NM_TEST_ASAN_OPTIONS:
|
if name == ENV_NM_TEST_ASAN_OPTIONS:
|
||||||
v = 'detect_leaks=0'
|
v = 'detect_leaks=1'
|
||||||
|
#v += ' fast_unwind_on_malloc=false'
|
||||||
elif name == ENV_NM_TEST_LSAN_OPTIONS:
|
elif name == ENV_NM_TEST_LSAN_OPTIONS:
|
||||||
v = ''
|
v = ''
|
||||||
elif name == ENV_NM_TEST_UBSAN_OPTIONS:
|
elif name == ENV_NM_TEST_UBSAN_OPTIONS:
|
||||||
v = ''
|
v = 'print_stacktrace=1:halt_on_error=1'
|
||||||
else:
|
else:
|
||||||
assert(False)
|
assert(False)
|
||||||
else:
|
else:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue