X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=test%2FT060-count.sh;h=69ab591fe0bd2dd3f1ac68039b007c630cd25709;hb=459989b7efb109e31930da5db0112854fa6e03da;hp=0ac8314087cd9c985f97b79170a50d37d5657c72;hpb=e311aad182326a1dcb0f8512e10b0e0f0faa9e2c;p=notmuch diff --git a/test/T060-count.sh b/test/T060-count.sh index 0ac83140..69ab591f 100755 --- a/test/T060-count.sh +++ b/test/T060-count.sh @@ -103,6 +103,8 @@ restore_database cat < count-files.gdb set breakpoint pending on +set logging file count-files-gdb.log +set logging on break count_files commands shell cp /dev/null ${MAIL_DIR}/.notmuch/xapian/postlist.${db_ending} @@ -124,4 +126,32 @@ sed 's/^\(A Xapian exception [^:]*\):.*$/\1/' < OUTPUT > OUTPUT.clean test_expect_equal_file EXPECTED OUTPUT.clean restore_database +test_begin_subtest "count library function is non-destructive" +test_subtest_known_broken +cat< EXPECTED +1: 52 messages +2: 52 messages +Exclude 'spam' +3: 52 messages +4: 52 messages +EOF +test_python <