diff options
| author | Tomi Ollila <tomi.ollila@iki.fi> | 2017-01-07 11:47:27 +0200 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2017-01-08 10:50:28 -0400 |
| commit | 95efe2d4849f218fffd232dd6e10011f0f837878 (patch) | |
| tree | 63fbbff30377c3ed9f298dcdee4a2e86f3840ead /test/T070-insert.sh | |
| parent | b15b96f846dcfabbd0c7f43e741573cfd14ab3c8 (diff) | |
test: allow user to choose which gdb to run tests with
The variable used for selecting gdb is TEST_GDB, consistent with
TEST_CC and TEST_EMACS{,CLIENT}.
Diffstat (limited to 'test/T070-insert.sh')
| -rwxr-xr-x | test/T070-insert.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/T070-insert.sh b/test/T070-insert.sh index 57472b91..7e04a23d 100755 --- a/test/T070-insert.sh +++ b/test/T070-insert.sh @@ -206,22 +206,22 @@ gen_insert_msg for code in FILE_NOT_EMAIL READ_ONLY_DATABASE UPGRADE_REQUIRED PATH_ERROR; do test_expect_code 1 "EXIT_FAILURE when add_message returns $code" \ - "gdb --batch-silent --return-child-result \ + "${TEST_GDB} --batch-silent --return-child-result \ -ex 'set args insert < $gen_msg_filename' \ -x index-file-$code.gdb notmuch" test_expect_code 0 "success exit with --keep when add_message returns $code" \ - "gdb --batch-silent --return-child-result \ + "${TEST_GDB} --batch-silent --return-child-result \ -ex 'set args insert --keep < $gen_msg_filename' \ -x index-file-$code.gdb notmuch" done for code in OUT_OF_MEMORY XAPIAN_EXCEPTION ; do test_expect_code 75 "EX_TEMPFAIL when add_message returns $code" \ - "gdb --batch-silent --return-child-result \ + "${TEST_GDB} --batch-silent --return-child-result \ -ex 'set args insert < $gen_msg_filename' \ -x index-file-$code.gdb notmuch" test_expect_code 0 "success exit with --keep when add_message returns $code" \ - "gdb --batch-silent --return-child-result \ + "${TEST_GDB} --batch-silent --return-child-result \ -ex 'set args insert --keep < $gen_msg_filename' \ -x index-file-$code.gdb notmuch" done |
