mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-26 05:56:14 +01:00
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:
parent
0eb6c85606
commit
8032ba88d6
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user