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

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

Issue 694353003: Get `gn gen` to succeed on Windows (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: remove GYP_DEFINES code Created 6 years, 1 month 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/corrupt4.test ('k') | third_party/sqlite/src/test/corrupt6.test » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 # 2008 Jan 22
2 #
3 # The author disclaims copyright to this source code. In place of
4 # a legal notice, here is a blessing:
5 #
6 # May you do good and not evil.
7 # May you find forgiveness for yourself and forgive others.
8 # May you share freely, never taking more than you give.
9 #
10 #***********************************************************************
11 # This file implements regression tests for SQLite library.
12 #
13 # This file implements tests to make sure SQLite does not crash or
14 # segfault if it sees a corrupt database file. Checks for
15 # malformed schema.
16 #
17 # $Id: corrupt5.test,v 1.3 2009/06/04 02:47:04 shane Exp $
18
19 set testdir [file dirname $argv0]
20 source $testdir/tester.tcl
21
22 # We must have the page_size pragma for these tests to work.
23 #
24 ifcapable !pager_pragmas {
25 finish_test
26 return
27 }
28
29 # Create a database with a freelist containing at least two pages.
30 #
31 do_test corrupt5-1.1 {
32 execsql {
33 CREATE TABLE t1(a,b,c);
34 CREATE INDEX i1 ON t1(a,b);
35 PRAGMA writable_schema=ON;
36 UPDATE sqlite_master SET name=NULL, sql=NULL WHERE name='i1';
37 }
38 db close
39 sqlite3 db test.db
40 catchsql {
41 SELECT * FROM t1
42 }
43 } {1 {malformed database schema (?)}}
44
45 finish_test
OLDNEW
« no previous file with comments | « third_party/sqlite/src/test/corrupt4.test ('k') | third_party/sqlite/src/test/corrupt6.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698