test: put shim at end of LD_PRELOAD path

Certain tools like the address-sanitizer fail if they are not the
first LD_PRELOADed library. It does not seem to matter for our shims,
as long as they are loaded before libnotmuch.
This commit is contained in:
David Bremner 2021-03-13 08:43:37 -04:00
parent 3734c76d12
commit 5248f55d5f

View file

@ -1128,7 +1128,7 @@ notmuch_with_shim () {
base_name="$1"
shift
shim_file="${base_name}.so"
LD_PRELOAD=./${shim_file}${LD_PRELOAD:+:$LD_PRELOAD} notmuch-shared "$@"
LD_PRELOAD=${LD_PRELOAD:+:$LD_PRELOAD}:./${shim_file} notmuch-shared "$@"
}
# Creates a script that counts how much time it is executed and calls