X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=test%2FT560-lib-error.sh;h=34d15698d9b69c80139c1bc54c3eef95b54d3c73;hb=58bf820b78f90c3db57fdd95a73fe76dc800733f;hp=f18c88132252c87a4f2e92fd2340018fc8c264d1;hpb=86cbd215eb67d7b996c977352a50e70c101cb641;p=notmuch diff --git a/test/T560-lib-error.sh b/test/T560-lib-error.sh index f18c8813..34d15698 100755 --- a/test/T560-lib-error.sh +++ b/test/T560-lib-error.sh @@ -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