]> git.notmuchmail.org Git - notmuch/blobdiff - test/atomicity
new: Wrap adding and removing messages in atomic sections.
[notmuch] / test / atomicity
index 23923512aeabc780563f0c6fbc45a1e3fa3d0b11..eeff6be926604d9d16fe820642ac09c761dff904 100755 (executable)
@@ -58,7 +58,6 @@ cp ${NOTMUCH_CONFIG} ${NOTMUCH_CONFIG}.snap
 NOTMUCH_CONFIG=${NOTMUCH_CONFIG}.snap notmuch config set database.path $MAIL_DIR.snap
 
 
-test_begin_subtest '"notmuch new" is idempotent under arbitrary aborts'
 
 # Execute notmuch new and, at every call to rename, snapshot the
 # database, run notmuch new again on the snapshot, and capture the
@@ -93,7 +92,9 @@ for ((i = 0; i < $outcount; i++)); do
         i=$(expr $end - 1)
     fi
 done
-test_expect_equal_failure GDB "$(cat searchall)" "$(cat expectall)"
+
+test_begin_subtest '"notmuch new" is idempotent under arbitrary aborts'
+test_expect_equal_file GDB searchall expectall
 
 test_expect_success GDB "detected $outcount>10 abort points" "test $outcount -gt 10"