[PATCH] test: move nonexistant directory to something under notmuch's control.
authorDavid Bremner <david@tethera.net>
Tue, 7 Apr 2015 12:15:00 +0000 (21:15 +0900)
committerW. Trevor King <wking@tremily.us>
Sat, 20 Aug 2016 21:48:45 +0000 (14:48 -0700)
26/170a13b097ad003864a0ae0b852012e6e281a0 [new file with mode: 0644]

diff --git a/26/170a13b097ad003864a0ae0b852012e6e281a0 b/26/170a13b097ad003864a0ae0b852012e6e281a0
new file mode 100644 (file)
index 0000000..a09cc5a
--- /dev/null
@@ -0,0 +1,78 @@
+Return-Path: <bremner@tesseract.cs.unb.ca>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+ by arlo.cworth.org (Postfix) with ESMTP id 2DB636DE1992\r
+ for <notmuch@notmuchmail.org>; Tue,  7 Apr 2015 05:16:09 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at cworth.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0.442\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0.442 tagged_above=-999 required=5 tests=[AWL=0.432, \r
+ T_HEADER_FROM_DIFFERENT_DOMAINS=0.01] autolearn=disabled\r
+Received: from arlo.cworth.org ([127.0.0.1])\r
+ by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)\r
+ with ESMTP id iWeFvyZzioDp for <notmuch@notmuchmail.org>;\r
+ Tue,  7 Apr 2015 05:16:07 -0700 (PDT)\r
+Received: from mx.xen14.node3324.gplhost.com (gitolite.debian.net\r
+ [87.98.215.224])\r
+ by arlo.cworth.org (Postfix) with ESMTPS id 04A226DE198A\r
+ for <notmuch@notmuchmail.org>; Tue,  7 Apr 2015 05:16:06 -0700 (PDT)\r
+Received: from remotemail by mx.xen14.node3324.gplhost.com with local (Exim\r
+ 4.80) (envelope-from <bremner@tesseract.cs.unb.ca>)\r
+ id 1YfSPZ-0000ki-2M; Tue, 07 Apr 2015 12:15:21 +0000\r
+Received: (nullmailer pid 22901 invoked by uid 1000); Tue, 07 Apr 2015\r
+ 12:15:03 -0000\r
+From: David Bremner <david@tethera.net>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH] test: move nonexistant directory to something under\r
+ notmuch's control.\r
+Date: Tue,  7 Apr 2015 21:15:00 +0900\r
+Message-Id: <1428408900-22839-1-git-send-email-david@tethera.net>\r
+X-Mailer: git-send-email 2.1.4\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.18\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+ <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch/>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Tue, 07 Apr 2015 12:16:09 -0000\r
+\r
+Apparently some systems actually have a directory called /nonexistent.\r
+It's hard to fathom a good reason for that, but oh well. As long as we\r
+don't create such a directory inside the notmuch source tree, the new\r
+version should be more robust.\r
+---\r
+This should (hopefully) fix the current failures on travis\r
+ test/T560-lib-error.sh | 4 ++--\r
+ 1 file changed, 2 insertions(+), 2 deletions(-)\r
+\r
+diff --git a/test/T560-lib-error.sh b/test/T560-lib-error.sh\r
+index 828a44b..57abb28 100755\r
+--- a/test/T560-lib-error.sh\r
++++ b/test/T560-lib-error.sh\r
+@@ -43,13 +43,13 @@ int main (int argc, char** argv)\r
+ {\r
+     notmuch_database_t *db;\r
+     notmuch_status_t stat;\r
+-    stat = notmuch_database_open ("/nonexistent/foo", 0, 0);\r
++    stat = notmuch_database_open ("./nonexistent/foo", 0, 0);\r
+ }\r
+ EOF\r
+ cat <<'EOF' >EXPECTED\r
+ == stdout ==\r
+ == stderr ==\r
+-Error opening database at /nonexistent/foo/.notmuch: No such file or directory\r
++Error opening database at ./nonexistent/foo/.notmuch: No such file or directory\r
+ EOF\r
+ test_expect_equal_file EXPECTED OUTPUT\r
\r
+-- \r
+2.1.4\r
+\r