]> git.notmuchmail.org Git - notmuch/commitdiff
test: use test_expect_equal_file in atomicity
authorDavid Bremner <bremner@debian.org>
Tue, 13 Sep 2011 12:31:46 +0000 (09:31 -0300)
committerDavid Bremner <bremner@debian.org>
Tue, 13 Sep 2011 12:31:46 +0000 (09:31 -0300)
The documentation claims this is more robust, and it seems to work
fine to switch to the _file variant.

test/atomicity

index ca5c44d7ec7af1a136c67f0623c50442f2036543..88b39587b355878858ec95e11b3277bbee8680c9 100755 (executable)
@@ -95,7 +95,7 @@ done
 
 test_begin_subtest '"notmuch new" is idempotent under arbitrary aborts'
 test_subtest_known_broken
-test_expect_equal GDB "$(cat searchall)" "$(cat expectall)"
+test_expect_equal_file GDB searchall expectall
 
 test_expect_success GDB "detected $outcount>10 abort points" "test $outcount -gt 10"