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

Unified Diff: third_party/sqlite/src/test/fuzzer1.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/fuzzdata5.db ('k') | third_party/sqlite/src/test/fuzzer2.test » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/sqlite/src/test/fuzzer1.test
diff --git a/third_party/sqlite/src/test/fuzzer1.test b/third_party/sqlite/src/test/fuzzer1.test
index 4ee573080762edbe2f658c7dd19a6a793ef7ecdf..5e361e9df0e220875816ae5a532676bcccfeb629 100644
--- a/third_party/sqlite/src/test/fuzzer1.test
+++ b/third_party/sqlite/src/test/fuzzer1.test
@@ -23,7 +23,6 @@ ifcapable !vtab {
}
set ::testprefix fuzzer1
-
load_static_extension db fuzzer
# Check configuration errors.
@@ -1649,51 +1648,6 @@ do_catchsql_test 5.5.4 {
} {1 {fuzzer: ruleset must be between 0 and 2147483647}}
#-------------------------------------------------------------------------
-# This test uses a fuzzer table with many rules. There is one rule to
-# map each possible two character string, where characters are lower-case
-# letters used in the English language, to all other possible two character
-# strings. In total, (26^4)-(26^2) mappings (the subtracted term represents
-# the no-op mappings discarded automatically by the fuzzer).
-#
-#
-do_execsql_test 6.1.1 {
- DROP TABLE IF EXISTS x1;
- DROP TABLE IF EXISTS x1_rules;
- CREATE TABLE x1_rules(ruleset, cFrom, cTo, cost);
-}
-puts "This test is slow - perhaps around 7 seconds on an average pc"
-do_test 6.1.2 {
- set LETTERS {a b c d e f g h i j k l m n o p q r s t u v w x y z}
- set cost 1
- db transaction {
- foreach c1 $LETTERS {
- foreach c2 $LETTERS {
- foreach c3 $LETTERS {
- foreach c4 $LETTERS {
- db eval {INSERT INTO x1_rules VALUES(0, $c1||$c2, $c3||$c4, $cost)}
- set cost [expr ($cost%1000) + 1]
- }
- }
- }
- }
- db eval {UPDATE x1_rules SET cost = 20 WHERE cost<20 AND cFrom!='xx'}
- }
-} {}
-
-do_execsql_test 6.2 {
- SELECT count(*) FROM x1_rules WHERE cTo!=cFrom;
-} [expr 26*26*26*26 - 26*26]
-
-do_execsql_test 6.2.1 {
- CREATE VIRTUAL TABLE x1 USING fuzzer(x1_rules);
- SELECT word FROM x1 WHERE word MATCH 'xx' LIMIT 10;
-} {xx hw hx hy hz ia ib ic id ie}
-do_execsql_test 6.2.2 {
- SELECT cTo FROM x1_rules WHERE cFrom='xx'
- ORDER BY cost asc, rowid asc LIMIT 9;
-} {hw hx hy hz ia ib ic id ie}
-
-#-------------------------------------------------------------------------
# Test using different types of quotes with CREATE VIRTUAL TABLE
# arguments.
#
« no previous file with comments | « third_party/sqlite/src/test/fuzzdata5.db ('k') | third_party/sqlite/src/test/fuzzer2.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698