-C Do\snot\srun\scrash8.test\sas\spart\sof\sthe\s"journaltest"\spermutation.\scrash8.test\suses\s"PRAGMA\ssynchronous=off",\swhich\sis\sincompatible\swith\sjournaltest.\s(CVS\s6162)
-D 2009-01-10T18:51:40
+C Adjust\ssavepoint.test\sso\sthat\sit\scan\sdeal\swith\sSQLITE_TEMP_STORE=3.\s(CVS\s6163)
+D 2009-01-11T00:18:38
F Makefile.arm-wince-mingw32ce-gcc fcd5e9cd67fe88836360bb4f9ef4cb7f8e2fb5a0
F Makefile.in 05461a9b5803d5ad10c79f989801e9fd2cc3e592
F Makefile.linux-gcc d53183f4aa6a9192d249731c90dbdffbd2c68654
F test/rowid.test 1c8fc43c60d273e6ea44dfb992db587f3164312c
F test/rtree.test b85fd4f0861a40ca366ac195e363be2528dcfadf
F test/safety.test b69e2b2dd5d52a3f78e216967086884bbc1a09c6
-F test/savepoint.test 2ffa8b0526b5b4a857abc9cc57fe4d7d0474ded0
+F test/savepoint.test 19b4027d78e04dd6936498bd85a0a71a39b32e6e
F test/savepoint2.test 18f6c75d5c133b93838019df8988b8cdf379d3de
F test/savepoint3.test 5b76f93ffcb5c53bd6ec68e9d57d3b535936c45e
F test/savepoint4.test fd8850063e3c40565545f5c291e7f79a30591670
F tool/speedtest2.tcl ee2149167303ba8e95af97873c575c3e0fab58ff
F tool/speedtest8.c 2902c46588c40b55661e471d7a86e4dd71a18224
F tool/speedtest8inst1.c 293327bc76823f473684d589a8160bde1f52c14e
-P 8f0672af8d7d46124d01e540eec7b43fc16dd552
-R 464cac85c504261cd53203c3d871603b
-U danielk1977
-Z 8e097e9c18c8a260aec14cdae8ae2058
+P 5f184da6758327e0d5fefe61ac3be06a79cc8269
+R a5cd680cf44d0a93c4a0ad4653aeef29
+U drh
+Z d341f40917425c3ad1d99a7db67cd3c2
#
#***********************************************************************
#
-# $Id: savepoint.test,v 1.10 2009/01/07 10:35:19 danielk1977 Exp $
+# $Id: savepoint.test,v 1.11 2009/01/11 00:18:38 drh Exp $
set testdir [file dirname $argv0]
source $testdir/tester.tcl
}
} {}
+# The lock state of the TEMP database can vary if SQLITE_TEMP_STORE=3
+# And the following set of tests is only really interested in the status
+# of the aux1 and aux2 locks. So record the current lock status of
+# TEMP for use in the answers.
+set templockstate [lindex [db eval {PRAGMA lock_status}] 3]
+
+
do_test savepoint-10.2.1 {
file delete -force test3.db
file delete -force test2.db
} {t1 t2 t3}
do_test savepoint-10.2.2 {
execsql { PRAGMA lock_status }
-} {main unlocked temp unlocked aux1 unlocked aux2 unlocked}
+} [list main unlocked temp $templockstate aux1 unlocked aux2 unlocked]
do_test savepoint-10.2.3 {
execsql {
INSERT INTO t1 VALUES(1, 2);
PRAGMA lock_status;
}
-} {main reserved temp unlocked aux1 unlocked aux2 unlocked}
+} [list main reserved temp $templockstate aux1 unlocked aux2 unlocked]
do_test savepoint-10.2.4 {
execsql {
INSERT INTO t3 VALUES(3, 4);
PRAGMA lock_status;
}
-} {main reserved temp unlocked aux1 unlocked aux2 reserved}
+} [list main reserved temp $templockstate aux1 unlocked aux2 reserved]
do_test savepoint-10.2.5 {
execsql {
SAVEPOINT two;
INSERT INTO t2 VALUES(5, 6);
PRAGMA lock_status;
}
-} {main reserved temp unlocked aux1 reserved aux2 reserved}
+} [list main reserved temp $templockstate aux1 reserved aux2 reserved]
do_test savepoint-10.2.6 {
execsql { SELECT * FROM t2 }
} {5 6}
} {}
do_test savepoint-10.2.8 {
execsql { PRAGMA lock_status }
-} {main reserved temp unlocked aux1 reserved aux2 reserved}
+} [list main reserved temp $templockstate aux1 reserved aux2 reserved]
do_test savepoint-10.2.9 {
execsql { SELECT 'a', * FROM t1 UNION ALL SELECT 'b', * FROM t3 }
} {a 1 2 b 3 4}
} {1 2 5 6 3 4}
do_test savepoint-10.2.9 {
execsql { PRAGMA lock_status }
-} {main unlocked temp unlocked aux1 unlocked aux2 unlocked}
+} [list main unlocked temp $templockstate aux1 unlocked aux2 unlocked]
do_test savepoint-10.2.10 {
execsql {
} {1 2 5 6 3 4}
do_test savepoint-10.2.14 {
execsql { PRAGMA lock_status }
-} {main unlocked temp unlocked aux1 unlocked aux2 unlocked}
+} [list main unlocked temp $templockstate aux1 unlocked aux2 unlocked]
#-------------------------------------------------------------------------
# The following tests - savepoint-11.* - test the interaction of
} {}
finish_test
-