glib/tests/gutils-user-database: Ensure the test run under ASAN

It uses LD_PRELOAD that may break asan, so let's ignore asan load order
for now, even though that implies a partial test
This commit is contained in:
Marco Trevisan (Treviño) 2024-05-08 23:04:38 +02:00
parent 0eb6c85606
commit 8032ba88d6

View File

@ -263,15 +263,20 @@ else
var_preload = 'DYLD_INSERT_LIBRARIES'
endif
asan_env = {}
if 'address' in glib_sanitizers
asan_env = {'ASAN_OPTIONS': 'verify_asan_link_order=0'}
endif
glib_tests += {
'gutils-user-database' : {
'depends' : getpwuid_preload,
'env' : {
var_preload: getpwuid_preload.full_path()
},
} + asan_env,
'installed_tests_env' : {
var_preload: installed_tests_execdir / fs.name(getpwuid_preload.full_path())
},
} + asan_env,
},
}
endif