]> 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)
committerRoss Burton <ross.burton@arm.com>
Thu, 1 Jul 2021 19:46:55 +0000 (20:46 +0100)
commitdd956268ba89fc1caf83c45c3c495f34d261e0e2
treec52346567eba9d4e0ffebf342864a5fc9186c521
parent867808590094b03fc9cc45e95798d174231dbedf
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