X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=test%2Fatomicity;h=6df0a00e4084281c9b03027668ff2e0ca38bf15a;hb=627f7b27f9756287795343cbb8a3137f74efccf9;hp=f9dbc9a61413e30c72848849404421e7bc6be2ca;hpb=c468f3703efc869d62d976ba177e2d0afd7b08ad;p=notmuch diff --git a/test/atomicity b/test/atomicity index f9dbc9a6..6df0a00e 100755 --- a/test/atomicity +++ b/test/atomicity @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash test_description='atomicity' . ./test-lib.sh @@ -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; 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; 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