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

Side by Side Diff: third_party/sqlite/src/test/corruptH.test

Issue 1610963002: Import SQLite 3.10.2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 unified diff | Download patch
« no previous file with comments | « third_party/sqlite/src/test/corruptE.test ('k') | third_party/sqlite/src/test/corruptI.test » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # 2014-01-20 1 # 2014-01-20
2 # 2 #
3 # The author disclaims copyright to this source code. In place of 3 # The author disclaims copyright to this source code. In place of
4 # a legal notice, here is a blessing: 4 # a legal notice, here is a blessing:
5 # 5 #
6 # May you do good and not evil. 6 # May you do good and not evil.
7 # May you find forgiveness for yourself and forgive others. 7 # May you find forgiveness for yourself and forgive others.
8 # May you share freely, never taking more than you give. 8 # May you share freely, never taking more than you give.
9 # 9 #
10 #*********************************************************************** 10 #***********************************************************************
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 do_test 1.2 { 57 do_test 1.2 {
58 db eval { SELECT name, rootpage FROM sqlite_master } { 58 db eval { SELECT name, rootpage FROM sqlite_master } {
59 set r($name) $rootpage 59 set r($name) $rootpage
60 } 60 }
61 db close 61 db close
62 hexio_write test.db [expr {($r(t2)-1)*1024 + 11}] [format %.2X $r(t1)] 62 hexio_write test.db [expr {($r(t2)-1)*1024 + 11}] [format %.2X $r(t1)]
63 sqlite3 db test.db 63 sqlite3 db test.db
64 } {} 64 } {}
65 65
66 do_test 1.3 { 66 do_test 1.3 {
67 breakpoint
68 db eval { PRAGMA secure_delete=1 } 67 db eval { PRAGMA secure_delete=1 }
69 list [catch { 68 list [catch {
70 db eval { SELECT * FROM t1 WHERE a IN (1, 2) } { 69 db eval { SELECT * FROM t1 WHERE a IN (1, 2) } {
71 db eval { DELETE FROM t2 } 70 db eval { DELETE FROM t2 }
72 } 71 }
73 } msg] $msg 72 } msg] $msg
74 } {1 {database disk image is malformed}} 73 } {1 {database disk image is malformed}}
75 74
76 #------------------------------------------------------------------------- 75 #-------------------------------------------------------------------------
77 reset_db 76 reset_db
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 db eval { SELECT * FROM t1 WHERE a IN (1, 2) } { 168 db eval { SELECT * FROM t1 WHERE a IN (1, 2) } {
170 db eval { 169 db eval {
171 DELETE FROM t2 WHERE c=1; 170 DELETE FROM t2 WHERE c=1;
172 } 171 }
173 } 172 }
174 } msg] $msg 173 } msg] $msg
175 } {1 {database disk image is malformed}} 174 } {1 {database disk image is malformed}}
176 175
177 finish_test 176 finish_test
178 177
OLDNEW
« no previous file with comments | « third_party/sqlite/src/test/corruptE.test ('k') | third_party/sqlite/src/test/corruptI.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698