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

Unified Diff: third_party/sqlite/src/test/wherefault.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/whereI.test ('k') | third_party/sqlite/src/test/win32nolock.test » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/sqlite/src/test/wherefault.test
diff --git a/third_party/sqlite/src/test/where8m.test b/third_party/sqlite/src/test/wherefault.test
similarity index 84%
rename from third_party/sqlite/src/test/where8m.test
rename to third_party/sqlite/src/test/wherefault.test
index 4fce3db7c3bc6de78516ecb4b74e9d4500199c7e..60330a92ddfab800ec66360d82a8da63ee534ad9 100644
--- a/third_party/sqlite/src/test/where8m.test
+++ b/third_party/sqlite/src/test/wherefault.test
@@ -9,17 +9,19 @@
#
#***********************************************************************
# This file implements regression tests for SQLite library. The focus
-# is testing of where.c. More specifically, the focus is the optimization
-# of WHERE clauses that feature the OR operator.
+# is testing of where.c. More specifically, the focus is on handling OOM
+# errors within the code that optimizes WHERE clauses that feature the
+# OR operator.
#
-# $Id: where8m.test,v 1.3 2009/06/05 17:09:12 drh Exp $
set testdir [file dirname $argv0]
source $testdir/tester.tcl
source $testdir/malloc_common.tcl
-do_malloc_test where8m-1 -sqlprep {
+set testprefix wherefault
+
+do_malloc_test 1 -sqlprep {
CREATE TABLE t1(a, b, c);
CREATE INDEX i1 ON t1(a);
CREATE INDEX i2 ON t1(b);
@@ -37,7 +39,7 @@ do_malloc_test where8m-1 -sqlprep {
a BETWEEN 1 AND 3 AND b < 5 AND b > 2 AND c = 4;
}
-do_malloc_test where8m-2 -tclprep {
+do_malloc_test 2 -tclprep {
db eval {
BEGIN;
CREATE TABLE t1(a, b, c);
« no previous file with comments | « third_party/sqlite/src/test/whereI.test ('k') | third_party/sqlite/src/test/win32nolock.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698