mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-22 10:58:10 +01:00
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.
This commit is contained in:
parent
5b3b1f44ed
commit
5f9e3f6987
1 changed files with 4 additions and 8 deletions
|
@ -7,8 +7,7 @@ test_description='atomicity'
|
||||||
# final database contents should be the same regardless of when (or
|
# final database contents should be the same regardless of when (or
|
||||||
# if) it is killed and restarted.
|
# if) it is killed and restarted.
|
||||||
|
|
||||||
if which gdb 1>/dev/null 2>&1; then
|
if test_require_external_prereq gdb; then
|
||||||
test_set_prereq GDB
|
|
||||||
|
|
||||||
# Create a maildir structure to also stress flag synchronization
|
# Create a maildir structure to also stress flag synchronization
|
||||||
mkdir $MAIL_DIR/cur
|
mkdir $MAIL_DIR/cur
|
||||||
|
@ -91,14 +90,11 @@ if which gdb 1>/dev/null 2>&1; then
|
||||||
i=$(expr $end - 1)
|
i=$(expr $end - 1)
|
||||||
fi
|
fi
|
||||||
done
|
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_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
|
test_done
|
||||||
|
|
Loading…
Reference in a new issue