]> git.notmuchmail.org Git - notmuch/commitdiff
test: Convert atomicity test to use test_subtest_known_broken
authorDavid Bremner <bremner@debian.org>
Sat, 10 Sep 2011 22:02:34 +0000 (19:02 -0300)
committerDavid Bremner <bremner@debian.org>
Tue, 13 Sep 2011 12:28:08 +0000 (09:28 -0300)
This is required because test_expect_equal_failure went away.

test/atomicity

index 23923512aeabc780563f0c6fbc45a1e3fa3d0b11..ca5c44d7ec7af1a136c67f0623c50442f2036543 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
 
 
 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
 
 # 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,10 @@ for ((i = 0; i < $outcount; i++)); do
         i=$(expr $end - 1)
     fi
 done
         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_subtest_known_broken
+test_expect_equal GDB "$(cat searchall)" "$(cat expectall)"
 
 test_expect_success GDB "detected $outcount>10 abort points" "test $outcount -gt 10"
 
 
 test_expect_success GDB "detected $outcount>10 abort points" "test $outcount -gt 10"