X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=test%2FT560-lib-error.sh;h=f18c88132252c87a4f2e92fd2340018fc8c264d1;hb=86cbd215eb67d7b996c977352a50e70c101cb641;hp=49d36740ceb08d237a94df6d47fcefef25ff0bee;hpb=45df509cb6fd642bc5895f2c7869a354c1255f4b;p=notmuch diff --git a/test/T560-lib-error.sh b/test/T560-lib-error.sh index 49d36740..f18c8813 100755 --- a/test/T560-lib-error.sh +++ b/test/T560-lib-error.sh @@ -5,7 +5,8 @@ test_description="error reporting for library" add_email_corpus -test_expect_success "building database" "NOTMUCH_NEW" +test_begin_subtest "building database" +test_expect_success "NOTMUCH_NEW" test_begin_subtest "Open null pointer" test_C <<'EOF' @@ -189,7 +190,7 @@ Path already exists: MAIL_DIR EOF test_expect_equal_file EXPECTED OUTPUT -cat <<'EOF' > c_head +cat < c_head #include #include #include @@ -210,7 +211,7 @@ int main (int argc, char** argv) fprintf (stderr, "error opening database: %d %s\n", stat, msg ? msg : ""); exit (1); } - path = talloc_asprintf (db, "%s/.notmuch/xapian/postlist.DB", argv[1]); + path = talloc_asprintf (db, "%s/.notmuch/xapian/postlist.${db_ending}", argv[1]); fd = open(path,O_WRONLY|O_TRUNC); if (fd < 0) { fprintf (stderr, "error opening %s\n", argv[1]); @@ -285,7 +286,7 @@ cat c_head - c_tail <<'EOF' | test_C ${MAIL_DIR} { notmuch_messages_t *messages = NULL; notmuch_query_t *query=notmuch_query_create (db, "*"); - stat = notmuch_query_search_messages_st (query, &messages); + stat = notmuch_query_search_messages (query, &messages); } EOF sed 's/^\(A Xapian exception [^:]*\):.*$/\1/' < OUTPUT > OUTPUT.clean