aboutsummaryrefslogtreecommitdiff
path: root/test/atomicity
diff options
context:
space:
mode:
authorDavid Bremner <bremner@debian.org>2011-09-10 19:02:34 -0300
committerDavid Bremner <bremner@debian.org>2011-09-13 09:28:08 -0300
commit05a522c5fa00bd6e0dc15e8cb858cdc45db801bf (patch)
tree60bbd2c32fd4b5fd138b32b79b3dff9f5ea9ee8a /test/atomicity
parent9ade8160a6a3f6f55996d7a58dc2cd81a6df8395 (diff)
test: Convert atomicity test to use test_subtest_known_broken
This is required because test_expect_equal_failure went away.
Diffstat (limited to 'test/atomicity')
-rwxr-xr-xtest/atomicity6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/atomicity b/test/atomicity
index 2392351..ca5c44d 100755
--- a/test/atomicity
+++ b/test/atomicity
@@ -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,10 @@ 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_subtest_known_broken
+test_expect_equal GDB "$(cat searchall)" "$(cat expectall)"
test_expect_success GDB "detected $outcount>10 abort points" "test $outcount -gt 10"