diff options
Diffstat (limited to 'test/symbol-test.cc')
-rw-r--r-- | test/symbol-test.cc | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/symbol-test.cc b/test/symbol-test.cc new file mode 100644 index 00000000..1de06eae --- /dev/null +++ b/test/symbol-test.cc @@ -0,0 +1,17 @@ +#include <stdio.h> +#include <xapian.h> +#include <notmuch.h> +main (int argc, char **argv){ + + notmuch_database_t *notmuch + = notmuch_database_open ("fakedb", + NOTMUCH_DATABASE_MODE_READ_ONLY); + + try{ + (void)new Xapian::WritableDatabase ("./nonexistant", Xapian::DB_OPEN); + } catch (const Xapian::Error &error) { + printf("caught %s\n",error.get_msg().c_str()); + return 0; + } + return 1; +} |