diff options
| author | David Bremner <david@tethera.net> | 2016-06-28 23:08:54 +0200 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2016-08-14 13:27:57 +0900 |
| commit | cf8aabdd3759519ad8c56852fe03908b1b09bc03 (patch) | |
| tree | ec5605d0d6791b276ae9524bfe4bb32f8e3493bb | |
| parent | 8fe58226ef81e9600c97675e62d4a78e0f6eeefe (diff) | |
test: make gdb even quieter
gdb sometimes writes warnings to stdout, which we don't need/want, and
for some reason --batch-silent isn't enough to hide. So in this commit
we write them to a log file, which is probably better for debugging
anyway. To see an illustrative test failure before this change, run
% make
% touch notmuch-count.c
% cd test && ./T060-count.sh
(cherry picked from commit f45fa5bdd397d52473f7092f7ae3e2ffb9b7aee5)
| -rwxr-xr-x | test/T060-count.sh | 2 | ||||
| -rwxr-xr-x | test/T070-insert.sh | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/test/T060-count.sh b/test/T060-count.sh index 0ac83140..d6933a76 100755 --- a/test/T060-count.sh +++ b/test/T060-count.sh @@ -103,6 +103,8 @@ restore_database cat <<EOF > count-files.gdb set breakpoint pending on +set logging file count-files-gdb.log +set logging on break count_files commands shell cp /dev/null ${MAIL_DIR}/.notmuch/xapian/postlist.${db_ending} diff --git a/test/T070-insert.sh b/test/T070-insert.sh index e7ec6a6c..c2485bb2 100755 --- a/test/T070-insert.sh +++ b/test/T070-insert.sh @@ -192,6 +192,8 @@ for code in OUT_OF_MEMORY XAPIAN_EXCEPTION FILE_NOT_EMAIL \ gen_insert_msg cat <<EOF > index-file-$code.gdb set breakpoint pending on +set logging file index-file-$code.log +set logging on break notmuch_database_add_message commands return NOTMUCH_STATUS_$code |
