]> git.cworth.org Git - obsolete/notmuch-old/blob - test/symbol-test.cc
version: set new version and release date
[obsolete/notmuch-old] / test / symbol-test.cc
1 #include <stdio.h>
2 #include <xapian.h>
3 #include <notmuch.h>
4
5
6 int main() {
7   notmuch_database_t *notmuch;
8   notmuch_database_open("fakedb", NOTMUCH_DATABASE_MODE_READ_ONLY, &notmuch);
9
10   try {
11     (void) new Xapian::WritableDatabase("./nonexistant", Xapian::DB_OPEN);
12   } catch (const Xapian::Error &error) {
13     printf("caught %s\n", error.get_msg().c_str());
14     return 0;
15   }
16
17   return 1;
18 }