Update a couple of test cases to account for the fact that ROLLBACK does not always abort all running SELECT statements.

FossilOrigin-Name: eba171e980fa4491dfee9d7e4df50c87a0ebbf87
This commit is contained in:
dan
2014-11-17 15:22:08 +00:00
parent 0a9d9d566e
commit 302f583aa4
4 changed files with 23 additions and 12 deletions
+7 -1
View File
@@ -446,9 +446,15 @@ do_malloc_test shared_err-8 -tclprep {
} {1}
db2 close
}
# When this test case was written, OOM errors in write statements would
# cause transaction rollback, which would trip cursors in other statements,
# aborting them. This no longer happens.
#
do_test shared_malloc-8.X {
# Test that one or more queries were aborted due to the malloc() failure.
expr $::aborted>=1
# expr $::aborted>=1
expr $::aborted==0
} {1}
# This test is designed to catch a specific bug that was present during