]> git.ipfire.org Git - thirdparty/util-linux.git/commit
test/eject: guard asan LD_PRELOAD with use-system-commands check
authorRoss Burton <ross.burton@arm.com>
Thu, 1 Jul 2021 19:44:31 +0000 (20:44 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 20 Jul 2021 09:54:17 +0000 (11:54 +0200)
commitbe39647ac4758d350fa9b5aa7c91856591cce4ce
treeace9f056db05f14b1e655d3c8cac915cdc5becdf
parent9ada40d3cc382555caae2d45c4a58502d3e7a554
test/eject: guard asan LD_PRELOAD with use-system-commands check

This test tries to add asan to LD_PRELOAD because the just-built eject
will call the host /bin/umount, and apparently asan doesn't like this.

However, if ldd isn't present, this fails as the path to asan is the
error message saying that ldd isn't present.

As the asan workaround is only needed when executing the binaries that
have just been built and not the system binaries, only use it if the
test is on the built binaries.

Closes #1373.

Signed-off-by: Ross Burton <ross.burton@arm.com>
tests/ts/eject/umount