]> git.notmuchmail.org Git - notmuch/blobdiff - test/T560-lib-error.sh
lib: replace deprecated n_q_count_messages with status returning version
[notmuch] / test / T560-lib-error.sh
index f18c88132252c87a4f2e92fd2340018fc8c264d1..34d15698d9b69c80139c1bc54c3eef95b54d3c73 100755 (executable)
@@ -303,9 +303,9 @@ backup_database
 test_begin_subtest "Xapian exception counting messages"
 cat c_head - c_tail <<'EOF' | test_C ${MAIL_DIR}
    {
+       int count;
        notmuch_query_t *query=notmuch_query_create (db, "id:87ocn0qh6d.fsf@yoom.home.cworth.org");
-       int count = notmuch_query_count_messages (query);
-       stat = (count == 0);
+       stat = notmuch_query_count_messages (query, &count);
    }
 EOF
 sed 's/^\(A Xapian exception [^:]*\):.*$/\1/' < OUTPUT > OUTPUT.clean