From 67c86504edeb2b1b5be47df0a67c0b72bf1441c4 Mon Sep 17 00:00:00 2001 From: David Bremner Date: Tue, 6 May 2014 22:06:28 +0900 Subject: [PATCH] [PATCH 2/2] test: redirect gdb output to a file. --- 21/ffbd45fa1cd7589f2ed3c5b25cae04958799fc | 70 +++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 21/ffbd45fa1cd7589f2ed3c5b25cae04958799fc diff --git a/21/ffbd45fa1cd7589f2ed3c5b25cae04958799fc b/21/ffbd45fa1cd7589f2ed3c5b25cae04958799fc new file mode 100644 index 000000000..adffa50e5 --- /dev/null +++ b/21/ffbd45fa1cd7589f2ed3c5b25cae04958799fc @@ -0,0 +1,70 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by olra.theworths.org (Postfix) with ESMTP id 37D59429E25 + for ; Tue, 6 May 2014 06:07:54 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: 0 +X-Spam-Level: +X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none] + autolearn=disabled +Received: from olra.theworths.org ([127.0.0.1]) + by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id nbrNF-Nn+bUQ for ; + Tue, 6 May 2014 06:07:48 -0700 (PDT) +Received: from mx.xen14.node3324.gplhost.com (gitolite.debian.net + [87.98.215.224]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id A9A2F431FD6 + for ; Tue, 6 May 2014 06:07:48 -0700 (PDT) +Received: from remotemail by mx.xen14.node3324.gplhost.com with local (Exim + 4.72) (envelope-from ) + id 1Whf5O-0006xj-Li; Tue, 06 May 2014 13:07:06 +0000 +Received: (nullmailer pid 29572 invoked by uid 1000); Tue, 06 May 2014 + 13:06:29 -0000 +From: David Bremner +To: notmuch@notmuchmail.org +Subject: [PATCH 2/2] test: redirect gdb output to a file. +Date: Tue, 6 May 2014 22:06:28 +0900 +Message-Id: <1399381588-26271-3-git-send-email-david@tethera.net> +X-Mailer: git-send-email 1.9.2 +In-Reply-To: <1399381588-26271-1-git-send-email-david@tethera.net> +References: <1399381588-26271-1-git-send-email-david@tethera.net> +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.13 +Precedence: list +List-Id: "Use and development of the notmuch mail system." + +List-Unsubscribe: , + +List-Archive: +List-Post: +List-Help: +List-Subscribe: , + +X-List-Received-Date: Tue, 06 May 2014 13:07:54 -0000 + +It seems that the normal output redirection in the test suite doesn't +work for gdb, but it's nice to have output in a file for debugging. +--- + test/T380-atomicity.sh | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/test/T380-atomicity.sh b/test/T380-atomicity.sh +index 1c786fa..2daef90 100755 +--- a/test/T380-atomicity.sh ++++ b/test/T380-atomicity.sh +@@ -64,7 +64,7 @@ if test_require_external_prereq gdb; then + # -tty /dev/null works around a conflict between the 'timeout' wrapper + # and gdb's attempt to control the TTY. + export MAIL_DIR +- gdb -tty /dev/null -batch -x $TEST_DIRECTORY/atomicity.gdb notmuch >/dev/null 2>/dev/null ++ gdb -tty /dev/null -batch -x $TEST_DIRECTORY/atomicity.gdb notmuch 1>gdb.out 2>&1 + + # Get the final, golden output + notmuch search '*' > expected +-- +1.9.2 + -- 2.26.2