4 if get_option('b_sanitize').contains('address')
5 test_env += 'ASAN_OPTIONS=detect_leaks=1:abort_on_error=1:print_stats=1'
7 if get_option('b_sanitize').contains('undefined')
8 test_env += 'UBSAN_OPTIONS=print_stacktrace=1:abort_on_error=1'
18 foreach test_source : test_sources
19 test_name = fs.replace_suffix(test_source, '')
20 test_exe = executable(test_name,
22 dependencies : libderp_dep,
23 c_args : get_option('b_sanitize').contains('address')
24 ? [] : ['-DTEST_HUGE_ALLOCATION_FAILURE=1'],
27 test(test_name, test_exe,