]> git.notmuchmail.org Git - notmuch/blobdiff - test/test-lib.sh
test: put shim at end of LD_PRELOAD path
[notmuch] / test / test-lib.sh
index 1f438042909d7115778ef19efe47c37ef709b0c4..098d69da347cffc689cb986761421f3ad2444250 100644 (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