From 5248f55d5f11c6ed6c2344b2ed13e6ff16fc6dde Mon Sep 17 00:00:00 2001 From: David Bremner Date: Sat, 13 Mar 2021 08:43:37 -0400 Subject: [PATCH] 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. --- test/test-lib.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test-lib.sh b/test/test-lib.sh index 1f438042..098d69da 100644 --- a/test/test-lib.sh +++ b/test/test-lib.sh @@ -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 -- 2.43.0