]> git.ipfire.org Git - thirdparty/systemd.git/commit
test: improve handling of ASan under clang
authorFrantisek Sumsal <frantisek@sumsal.cz>
Fri, 24 May 2019 20:35:52 +0000 (22:35 +0200)
committerFrantisek Sumsal <frantisek@sumsal.cz>
Mon, 27 May 2019 15:46:07 +0000 (17:46 +0200)
commit37ee8dc80f070311896f4a92e56a2333b8da735d
treef780671daa3c3d46fdeff1ddc973e1eeffa14461
parentde26d715e3482bd406ad45f698428d4179d013da
test: improve handling of ASan under clang

Running integration tests with ASan is somewhat tricky to begin with, as
we need to pre-load the ASan runtime DSO for certain services (like
dbus), otherwise they won't start or behave as expected. In case of gcc
this is pretty easy, as we need the runtime DSO during compilation, so
it's already present on the host system. For clang things get more
complicated, as ASan is compiled in statically by default, thus to
enable the necessary dynamic-ish behavior one needs to compile with
-shared-libasan and then correctly set LD_PRELOAD_PATH, as the runtime
libraries are not in a standard library path.
test/test-functions