1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-29 08:01:23 +03:00

Update the sessionfault-9.1 and -9.2 tests to account for the change in

version 3.7.11 in which a pending statement no longer blocks ROLLBACK but
instead causes the next call on that statement to return SQLITE_ABORT.

FossilOrigin-Name: fae9eb197fcef726fd2c7c701afe6805fc008cf9
This commit is contained in:
drh
2012-09-28 12:55:56 +00:00
parent 7417cefec6
commit 40eaa08620
3 changed files with 14 additions and 10 deletions

View File

@ -372,7 +372,9 @@ do_test 9.1.prep {
} {}
faultsim_save_and_close
set answers [list {0 {}} {1 SQLITE_NOMEM} {1 {callback requested query abort}}]
set answers [list {0 {}} {1 SQLITE_NOMEM} \
{1 {callback requested query abort}} \
{1 {abort due to ROLLBACK}}]
do_faultsim_test 9.1 -faults oom-transient -prep {
catch { unset ::c }
faultsim_restore_and_reopen
@ -409,7 +411,9 @@ do_test 9.2.prep {
} {}
faultsim_save_and_close
set answers [list {0 {}} {1 SQLITE_NOMEM} {1 {callback requested query abort}}]
set answers [list {0 {}} {1 SQLITE_NOMEM} \
{1 {callback requested query abort}} \
{1 {abort due to ROLLBACK}}]
do_faultsim_test 9.2 -faults oom-transient -prep {
catch { unset ::c }
faultsim_restore_and_reopen