2 test_description='transactions'
3 . $(dirname "$0")/test-lib.sh || exit 1
5 make_shim no-close <<EOF
9 notmuch_database_close (notmuch_database_t *notmuch)
11 return notmuch_database_begin_atomic (notmuch);
17 generate_message '[subject]="'"subject $i"'"' \
18 '[body]="'"body $i"'"'
21 test_begin_subtest "initial new"
24 Added 1024 new messages to the database.
26 test_expect_equal_file EXPECTED OUTPUT
28 test_begin_subtest "Some changes saved with open transaction"
29 notmuch config set database.autocommit 1000
30 rm -r ${MAIL_DIR}/.notmuch
31 notmuch_with_shim no-close new
32 output=$(notmuch count '*')
33 test_expect_equal "$output" "1000"