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

Side by Side Diff: third_party/sqlite/sqlite-src-3080704/test/fts3tok_err.test

Issue 883353008: [sql] Import reference version of SQLite 3.8.7.4. (Closed) Base URL: http://chromium.googlesource.com/chromium/src.git@master
Patch Set: Hold back encoding change which is messing up patch. Created 5 years, 10 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
OLDNEW
(Empty)
1 # 2013 April 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. The
12 # focus of this script is testing the "fts3tokenize" virtual table
13 # that is part of the FTS3 module.
14 #
15
16 set testdir [file dirname $argv0]
17 source $testdir/tester.tcl
18 source $testdir/malloc_common.tcl
19 ifcapable !fts3 { finish_test ; return }
20 set ::testprefix fts3tok_err
21
22
23 faultsim_save_and_close
24 do_faultsim_test fts3tok_err-1 -faults oom* -prep {
25 faultsim_restore_and_reopen
26 } -body {
27 execsql { CREATE VIRTUAL TABLE t1 USING fts3tokenize("simple"); }
28 } -test {
29 faultsim_test_result {0 {}}
30 }
31
32 do_test fts3tok_err-2.prep {
33 faultsim_delete_and_reopen
34 execsql { CREATE VIRTUAL TABLE t1 USING fts3tokenize("simple"); }
35 faultsim_save_and_close
36 } {}
37
38 do_faultsim_test fts3tok_err-2 -faults oom* -prep {
39 faultsim_restore_and_reopen
40 } -body {
41 execsql { SELECT token FROM t1 WHERE input = 'A galaxy far, far away' }
42 } -test {
43 faultsim_test_result {0 {a galaxy far far away}}
44 }
45
46
47 finish_test
OLDNEW
« no previous file with comments | « third_party/sqlite/sqlite-src-3080704/test/fts3tok1.test ('k') | third_party/sqlite/sqlite-src-3080704/test/fts3varint.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698