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

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

Issue 6990047: Import SQLite 3.7.6.3. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « third_party/sqlite/src/test/corrupt7.test ('k') | third_party/sqlite/src/test/corrupt9.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 # 2008 July 9 1 # 2008 July 9
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 #***********************************************************************
11 # This file implements regression tests for SQLite library. 11 # This file implements regression tests for SQLite library.
12 # 12 #
13 # This file implements tests to make sure SQLite does not crash or 13 # This file implements tests to make sure SQLite does not crash or
14 # segfault if it sees a corrupt database file. It specifically focuses 14 # segfault if it sees a corrupt database file. It specifically focuses
15 # on corrupt pointer map pages. 15 # on corrupt pointer map pages.
16 # 16 #
17 # $Id: corrupt8.test,v 1.2 2008/07/11 03:34:10 drh Exp $ 17 # $Id: corrupt8.test,v 1.2 2008/07/11 03:34:10 drh Exp $
18 18
19 set testdir [file dirname $argv0] 19 set testdir [file dirname $argv0]
20 source $testdir/tester.tcl 20 source $testdir/tester.tcl
21 21
22 # Do not use a codec for tests in this file, as the database file is
23 # manipulated directly using tcl scripts (using the [hexio_write] command).
24 #
25 do_not_use_codec
26
22 # We must have the page_size pragma for these tests to work. 27 # We must have the page_size pragma for these tests to work.
23 # 28 #
24 ifcapable !pager_pragmas||!autovacuum { 29 ifcapable !pager_pragmas||!autovacuum {
25 finish_test 30 finish_test
26 return 31 return
27 } 32 }
28 33
29 # Create a database to work with. 34 # Create a database to work with.
30 # 35 #
31 do_test corrupt8-1.1 { 36 do_test corrupt8-1.1 {
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 sqlite3 db test.db 95 sqlite3 db test.db
91 set x [db eval {PRAGMA integrity_check}] 96 set x [db eval {PRAGMA integrity_check}]
92 expr {$x!="ok"} 97 expr {$x!="ok"}
93 } {1} 98 } {1}
94 hexio_write test.db $i2 $oldval 99 hexio_write test.db $i2 $oldval
95 } 100 }
96 } 101 }
97 102
98 103
99 finish_test 104 finish_test
OLDNEW
« no previous file with comments | « third_party/sqlite/src/test/corrupt7.test ('k') | third_party/sqlite/src/test/corrupt9.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698