diff options
author | Dmitry Kurochkin <dmitry.kurochkin@gmail.com> | 2011-12-02 02:02:46 +0400 |
---|---|---|
committer | David Bremner <bremner@debian.org> | 2011-12-11 10:13:32 -0400 |
commit | 5f9e3f69873335e54a1c6fdb8b3058336198ef78 (patch) | |
tree | 1e7b48be3fb2e81e10d48f8ce0dffd41c375b28b /test | |
parent | 5b3b1f44edb49bdb8e92c445ad5f3e60f6c033d9 (diff) |
test: cleanup gdb external dependency in atomicity tests
Change atomicity tests to use the new external binary dependencies.
This simplifies the code and makes output consistent.
Diffstat (limited to 'test')
-rwxr-xr-x | test/atomicity | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/test/atomicity b/test/atomicity index ad7d4a3c..6df0a00e 100755 --- a/test/atomicity +++ b/test/atomicity @@ -7,8 +7,7 @@ test_description='atomicity' # final database contents should be the same regardless of when (or # if) it is killed and restarted. -if which gdb 1>/dev/null 2>&1; then - test_set_prereq GDB +if test_require_external_prereq gdb; then # Create a maildir structure to also stress flag synchronization mkdir $MAIL_DIR/cur @@ -91,14 +90,11 @@ if which gdb 1>/dev/null 2>&1; then i=$(expr $end - 1) fi done -else - say_color info "%-6s" "WARNING" - echo " Missing test prerequisite GDB" -fi +fi test_begin_subtest '"notmuch new" is idempotent under arbitrary aborts' -test_expect_equal_file GDB searchall expectall +test_expect_equal_file searchall expectall -test_expect_success GDB "detected $outcount>10 abort points" "test $outcount -gt 10" +test_expect_success "detected $outcount>10 abort points" "test $outcount -gt 10" test_done |