Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1027)

Unified Diff: third_party/sqlite/src/test/pagerfault.test

Issue 2751253002: [sql] Import SQLite 3.17.0. (Closed)
Patch Set: also clang on Linux i386 Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/sqlite/src/test/pager1.test ('k') | third_party/sqlite/src/test/pageropt.test » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/sqlite/src/test/pagerfault.test
diff --git a/third_party/sqlite/src/test/pagerfault.test b/third_party/sqlite/src/test/pagerfault.test
index c0f5de69acc0a6a0bed37bc8157e5fb4c9214e4f..2e70171b20b22dddffe6d8b0c38f703bba277660 100644
--- a/third_party/sqlite/src/test/pagerfault.test
+++ b/third_party/sqlite/src/test/pagerfault.test
@@ -684,22 +684,24 @@ do_faultsim_test pagerfault-14a -prep {
# is not possible to change the page-size of an in-memory database. Even
# using the backup API.
#
-if {$TEMP_STORE<2} {
- do_faultsim_test pagerfault-14b -prep {
- catch { db2 close }
- faultsim_restore_and_reopen
+# Update: It is no longer possible to change the page size of any temp
+# database after it has been created.
+#
+do_faultsim_test pagerfault-14b -prep {
+ catch { db2 close }
+ faultsim_restore_and_reopen
sqlite3 db2 ""
db2 eval { PRAGMA page_size = 4096; CREATE TABLE xx(a) }
- } -body {
- sqlite3_backup B db2 main db main
- B step 200
- set rc [B finish]
- if {[string match SQLITE_IOERR_* $rc]} {set rc SQLITE_IOERR}
- if {$rc != "SQLITE_OK"} { error [sqlite3_test_errstr $rc] }
- set {} {}
- } -test {
- faultsim_test_result {0 {}} {1 {sqlite3_backup_init() failed}}
- }
+} -body {
+ sqlite3_backup B db2 main db main
+ B step 200
+ set rc [B finish]
+ if {[string match SQLITE_IOERR_* $rc]} {set rc SQLITE_IOERR}
+ if {$rc != "SQLITE_OK"} { error [sqlite3_test_errstr $rc] }
+ set {} {}
+} -test {
+ faultsim_test_result {1 {attempt to write a readonly database}} \
+ {1 {sqlite3_backup_init() failed}}
}
do_faultsim_test pagerfault-14c -prep {
« no previous file with comments | « third_party/sqlite/src/test/pager1.test ('k') | third_party/sqlite/src/test/pageropt.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698