diff options
Diffstat (limited to 'test/attach2.test')
-rw-r--r-- | test/attach2.test | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/test/attach2.test b/test/attach2.test index 2008dbbc6..4a8b9c034 100644 --- a/test/attach2.test +++ b/test/attach2.test @@ -12,7 +12,7 @@ # focus of this script is testing the ATTACH and DETACH commands # and related functionality. # -# $Id: attach2.test,v 1.15 2004/06/09 21:01:12 drh Exp $ +# $Id: attach2.test,v 1.16 2004/06/12 02:17:15 drh Exp $ # set testdir [file dirname $argv0] @@ -263,7 +263,6 @@ do_test attach2-4.9 { lock_status 4.9.1 db {main shared temp reserved file2 shared} lock_status 4.9.2 db2 {main reserved temp reserved file2 reserved} -set sqlite_os_trace 0 btree_breakpoint do_test attach2-4.10 { # We cannot commit db2 while db is holding a read-lock @@ -271,15 +270,17 @@ do_test attach2-4.10 { } {1 {database is locked}} lock_status 4.10.1 db {main shared temp reserved file2 shared} -lock_status 4.10.2 db2 {main reserved temp reserved file2 reserved} +lock_status 4.10.2 db2 {main pending temp reserved file2 reserved} +set sqlite_os_trace 0 +btree_breakpoint do_test attach2-4.11 { # db is able to commit. catchsql {COMMIT} } {0 {}} lock_status 4.11.1 db {main unlocked temp unlocked file2 unlocked} -lock_status 4.11.2 db2 {main reserved temp reserved file2 reserved} +lock_status 4.11.2 db2 {main pending temp reserved file2 reserved} do_test attach2-4.12 { # Now we can commit db2 |