diff options
| author | David Bremner <david@tethera.net> | 2021-03-13 08:43:37 -0400 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2021-04-16 09:06:39 -0300 |
| commit | 5248f55d5f11c6ed6c2344b2ed13e6ff16fc6dde (patch) | |
| tree | ad52c392b5d0e99cbeccf121f833e93dab5ad50b | |
| parent | 3734c76d121133fbad2afbfa454bf620f7ba3a1e (diff) | |
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.
| -rw-r--r-- | test/test-lib.sh | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
