database error
[notmuch-archives.git] / 26 / 170a13b097ad003864a0ae0b852012e6e281a0
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 2DB636DE1992\r
6  for <notmuch@notmuchmail.org>; Tue,  7 Apr 2015 05:16:09 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at cworth.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: 0.442\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0.442 tagged_above=-999 required=5 tests=[AWL=0.432, \r
12  T_HEADER_FROM_DIFFERENT_DOMAINS=0.01] autolearn=disabled\r
13 Received: from arlo.cworth.org ([127.0.0.1])\r
14  by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)\r
15  with ESMTP id iWeFvyZzioDp for <notmuch@notmuchmail.org>;\r
16  Tue,  7 Apr 2015 05:16:07 -0700 (PDT)\r
17 Received: from mx.xen14.node3324.gplhost.com (gitolite.debian.net\r
18  [87.98.215.224])\r
19  by arlo.cworth.org (Postfix) with ESMTPS id 04A226DE198A\r
20  for <notmuch@notmuchmail.org>; Tue,  7 Apr 2015 05:16:06 -0700 (PDT)\r
21 Received: from remotemail by mx.xen14.node3324.gplhost.com with local (Exim\r
22  4.80) (envelope-from <bremner@tesseract.cs.unb.ca>)\r
23  id 1YfSPZ-0000ki-2M; Tue, 07 Apr 2015 12:15:21 +0000\r
24 Received: (nullmailer pid 22901 invoked by uid 1000); Tue, 07 Apr 2015\r
25  12:15:03 -0000\r
26 From: David Bremner <david@tethera.net>\r
27 To: notmuch@notmuchmail.org\r
28 Subject: [PATCH] test: move nonexistant directory to something under\r
29  notmuch's control.\r
30 Date: Tue,  7 Apr 2015 21:15:00 +0900\r
31 Message-Id: <1428408900-22839-1-git-send-email-david@tethera.net>\r
32 X-Mailer: git-send-email 2.1.4\r
33 X-BeenThere: notmuch@notmuchmail.org\r
34 X-Mailman-Version: 2.1.18\r
35 Precedence: list\r
36 List-Id: "Use and development of the notmuch mail system."\r
37  <notmuch.notmuchmail.org>\r
38 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
39  <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
40 List-Archive: <http://notmuchmail.org/pipermail/notmuch/>\r
41 List-Post: <mailto:notmuch@notmuchmail.org>\r
42 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
43 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
44  <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
45 X-List-Received-Date: Tue, 07 Apr 2015 12:16:09 -0000\r
46 \r
47 Apparently some systems actually have a directory called /nonexistent.\r
48 It's hard to fathom a good reason for that, but oh well. As long as we\r
49 don't create such a directory inside the notmuch source tree, the new\r
50 version should be more robust.\r
51 ---\r
52 This should (hopefully) fix the current failures on travis\r
53  test/T560-lib-error.sh | 4 ++--\r
54  1 file changed, 2 insertions(+), 2 deletions(-)\r
55 \r
56 diff --git a/test/T560-lib-error.sh b/test/T560-lib-error.sh\r
57 index 828a44b..57abb28 100755\r
58 --- a/test/T560-lib-error.sh\r
59 +++ b/test/T560-lib-error.sh\r
60 @@ -43,13 +43,13 @@ int main (int argc, char** argv)\r
61  {\r
62      notmuch_database_t *db;\r
63      notmuch_status_t stat;\r
64 -    stat = notmuch_database_open ("/nonexistent/foo", 0, 0);\r
65 +    stat = notmuch_database_open ("./nonexistent/foo", 0, 0);\r
66  }\r
67  EOF\r
68  cat <<'EOF' >EXPECTED\r
69  == stdout ==\r
70  == stderr ==\r
71 -Error opening database at /nonexistent/foo/.notmuch: No such file or directory\r
72 +Error opening database at ./nonexistent/foo/.notmuch: No such file or directory\r
73  EOF\r
74  test_expect_equal_file EXPECTED OUTPUT\r
75  \r
76 -- \r
77 2.1.4\r
78 \r