Re: [PATCH 1/2] test: provide machinery to make and use test_shims

2019-06-25 Thread Daniel Kahn Gillmor
On Wed 2019-06-26 00:05:09 +0300, Tomi Ollila wrote: > LD_PRELOAD=./${shim_file}${LD_PRELOAD:+:$LD_PRELOAD} notmuch-shared "$@" > > So that if LD_PRELOAD is already set and is non-empty then ':' and its > old value is appended to new value of LD_PRELOAD before this > notmuch-shared invocation.

Re: [PATCH 1/2] test: provide machinery to make and use test_shims

2019-06-25 Thread Tomi Ollila
On Sun, May 26 2019, David Bremner wrote: > These can be used e.g. to override return values for functions, in > place of the existing scripting of gdb. > --- > test/test-lib.sh | 16 > 1 file changed, 16 insertions(+) > > diff --git a/test/test-lib.sh b/test/test-lib.sh > index

[PATCH 1/2] test: provide machinery to make and use test_shims

2019-05-26 Thread David Bremner
These can be used e.g. to override return values for functions, in place of the existing scripting of gdb. --- test/test-lib.sh | 16 1 file changed, 16 insertions(+) diff --git a/test/test-lib.sh b/test/test-lib.sh index ff18fae6..a423b7f4 100644 --- a/test/test-lib.sh +++