1 Return-Path: <bremner@tesseract.cs.unb.ca>
\r
2 X-Original-To: notmuch@notmuchmail.org
\r
3 Delivered-To: notmuch@notmuchmail.org
\r
4 Received: from localhost (localhost [127.0.0.1])
\r
5 by arlo.cworth.org (Postfix) with ESMTP id 72A766DE01D0
\r
6 for <notmuch@notmuchmail.org>; Tue, 28 Jun 2016 14:09:14 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at cworth.org
\r
11 X-Spam-Status: No, score=-0.005 tagged_above=-999 required=5
\r
12 tests=[AWL=-0.006, HEADER_FROM_DIFFERENT_DOMAINS=0.001]
\r
14 Received: from arlo.cworth.org ([127.0.0.1])
\r
15 by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)
\r
16 with ESMTP id BznLXPazRYRq for <notmuch@notmuchmail.org>;
\r
17 Tue, 28 Jun 2016 14:09:06 -0700 (PDT)
\r
18 Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197])
\r
19 by arlo.cworth.org (Postfix) with ESMTPS id 121646DE00DA
\r
20 for <notmuch@notmuchmail.org>; Tue, 28 Jun 2016 14:09:05 -0700 (PDT)
\r
21 Received: from remotemail by fethera.tethera.net with local (Exim 4.84)
\r
22 (envelope-from <bremner@tesseract.cs.unb.ca>)
\r
23 id 1bI0FQ-0007dV-HT; Tue, 28 Jun 2016 17:08:44 -0400
\r
24 Received: (nullmailer pid 11794 invoked by uid 1000);
\r
25 Tue, 28 Jun 2016 21:08:58 -0000
\r
26 From: David Bremner <david@tethera.net>
\r
27 To: notmuch@notmuchmail.org
\r
28 Subject: [PATCH] test: make gdb even quieter
\r
29 Date: Tue, 28 Jun 2016 23:08:54 +0200
\r
30 Message-Id: <1467148134-11748-1-git-send-email-david@tethera.net>
\r
31 X-Mailer: git-send-email 2.8.1
\r
32 X-BeenThere: notmuch@notmuchmail.org
\r
33 X-Mailman-Version: 2.1.20
\r
35 List-Id: "Use and development of the notmuch mail system."
\r
36 <notmuch.notmuchmail.org>
\r
37 List-Unsubscribe: <https://notmuchmail.org/mailman/options/notmuch>,
\r
38 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
39 List-Archive: <http://notmuchmail.org/pipermail/notmuch/>
\r
40 List-Post: <mailto:notmuch@notmuchmail.org>
\r
41 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
42 List-Subscribe: <https://notmuchmail.org/mailman/listinfo/notmuch>,
\r
43 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
44 X-List-Received-Date: Tue, 28 Jun 2016 21:09:14 -0000
\r
46 gdb sometimes writes warnings to stdout, which we don't need/want, and
\r
47 for some reason --batch-silent isn't enough to hide. So in this commit
\r
48 we write them to a log file, which is probably better for debugging
\r
49 anyway. To see an illustrative test failure before this change, run
\r
52 % touch notmuch-count.c
\r
53 % cd test && ./T060-count.sh
\r
55 test/T060-count.sh | 2 ++
\r
56 test/T070-insert.sh | 2 ++
\r
57 2 files changed, 4 insertions(+)
\r
59 diff --git a/test/T060-count.sh b/test/T060-count.sh
\r
60 index 0ac8314..d6933a7 100755
\r
61 --- a/test/T060-count.sh
\r
62 +++ b/test/T060-count.sh
\r
63 @@ -103,6 +103,8 @@ restore_database
\r
65 cat <<EOF > count-files.gdb
\r
66 set breakpoint pending on
\r
67 +set logging file count-files-gdb.log
\r
71 shell cp /dev/null ${MAIL_DIR}/.notmuch/xapian/postlist.${db_ending}
\r
72 diff --git a/test/T070-insert.sh b/test/T070-insert.sh
\r
73 index e7ec6a6..c2485bb 100755
\r
74 --- a/test/T070-insert.sh
\r
75 +++ b/test/T070-insert.sh
\r
76 @@ -192,6 +192,8 @@ for code in OUT_OF_MEMORY XAPIAN_EXCEPTION FILE_NOT_EMAIL \
\r
78 cat <<EOF > index-file-$code.gdb
\r
79 set breakpoint pending on
\r
80 +set logging file index-file-$code.log
\r
82 break notmuch_database_add_message
\r
84 return NOTMUCH_STATUS_$code
\r