unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* [PATCH] test: move nonexistant directory to something under notmuch's control.
@ 2015-04-07 12:15 David Bremner
  2015-04-07 12:30 ` Tomi Ollila
  0 siblings, 1 reply; 6+ messages in thread
From: David Bremner @ 2015-04-07 12:15 UTC (permalink / raw)
  To: notmuch

Apparently some systems actually have a directory called /nonexistent.
It's hard to fathom a good reason for that, but oh well. As long as we
don't create such a directory inside the notmuch source tree, the new
version should be more robust.
---
This should (hopefully) fix the current failures on travis
 test/T560-lib-error.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/test/T560-lib-error.sh b/test/T560-lib-error.sh
index 828a44b..57abb28 100755
--- a/test/T560-lib-error.sh
+++ b/test/T560-lib-error.sh
@@ -43,13 +43,13 @@ int main (int argc, char** argv)
 {
     notmuch_database_t *db;
     notmuch_status_t stat;
-    stat = notmuch_database_open ("/nonexistent/foo", 0, 0);
+    stat = notmuch_database_open ("./nonexistent/foo", 0, 0);
 }
 EOF
 cat <<'EOF' >EXPECTED
 == stdout ==
 == stderr ==
-Error opening database at /nonexistent/foo/.notmuch: No such file or directory
+Error opening database at ./nonexistent/foo/.notmuch: No such file or directory
 EOF
 test_expect_equal_file EXPECTED OUTPUT
 
-- 
2.1.4

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-04-09  0:20 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-07 12:15 [PATCH] test: move nonexistant directory to something under notmuch's control David Bremner
2015-04-07 12:30 ` Tomi Ollila
2015-04-08 14:45   ` [PATCH 1/2] test: be consistent about spelling `nonexistent' David Bremner
2015-04-08 14:45     ` [PATCH 2/2] test: move nonexistent directory to something under notmuch's control David Bremner
2015-04-08 15:04     ` [PATCH 1/2] test: be consistent about spelling `nonexistent' Tomi Ollila
2015-04-09  0:19       ` David Bremner

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).