]> git.notmuchmail.org Git - notmuch/blob - test/symbol-test.cc
test: add simple tests for online help
[notmuch] / test / symbol-test.cc
1 #include <stdio.h>
2 #include <xapian.h>
3 #include <notmuch.h>
4 main (int argc, char **argv){
5
6     notmuch_database_t *notmuch
7       = notmuch_database_open ("fakedb",
8                                      NOTMUCH_DATABASE_MODE_READ_ONLY);
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   return 1;
17 }