]> git.notmuchmail.org Git - notmuch/blob - test/symbol-test.cc
Fix warnings for test/symbol-test.cc.
[notmuch] / test / symbol-test.cc
1 #include <stdio.h>
2 #include <xapian.h>
3 #include <notmuch.h>
4 int main (){
5
6   (void)notmuch_database_open ("fakedb",
7                                      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   return 1;
16 }