]> git.notmuchmail.org Git - notmuch/blob - test/symbol-test.cc
py3k: The ConfigParser module has been renamed to configparser
[notmuch] / test / symbol-test.cc
1 #include <stdio.h>
2 #include <xapian.h>
3 #include <notmuch.h>
4
5
6 int main() {
7   (void) notmuch_database_open("fakedb", NOTMUCH_DATABASE_MODE_READ_ONLY);
8
9   try {
10     (void) new Xapian::WritableDatabase("./nonexistant", Xapian::DB_OPEN);
11   } catch (const Xapian::Error &error) {
12     printf("caught %s\n", error.get_msg().c_str());
13     return 0;
14   }
15
16   return 1;
17 }