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

Unified Diff: third_party/sqlite/src/test/sort2.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/sort.test ('k') | third_party/sqlite/src/test/sort3.test » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/sqlite/src/test/sort2.test
diff --git a/third_party/sqlite/src/test/sort2.test b/third_party/sqlite/src/test/sort2.test
index 890025a5d0c5cf4692e6cc70f7cbcfdad8fff285..f686654d53a594128e7135d549432b82da35c1ac 100644
--- a/third_party/sqlite/src/test/sort2.test
+++ b/third_party/sqlite/src/test/sort2.test
@@ -31,7 +31,6 @@ foreach {tn script} {
catch { db eval {PRAGMA threads=7} }
}
} {
-
eval $script
do_execsql_test $tn.1 {
@@ -67,17 +66,22 @@ foreach {tn script} {
do_execsql_test $tn.2.4 { PRAGMA integrity_check } {ok}
- do_execsql_test $tn.3 {
- PRAGMA cache_size = 5;
- WITH r(x,y) AS (
- SELECT 1, randomblob(100)
- UNION ALL
- SELECT x+1, randomblob(100) FROM r
- LIMIT 1000000
- )
- SELECT count(x), length(y) FROM r GROUP BY (x%5)
- } {
- 200000 100 200000 100 200000 100 200000 100 200000 100
+ # Because it uses so much data, this test can take 12-13 seconds even on
+ # a modern workstation. So it is omitted from "veryquick" and other
+ # permutations.test tests.
+ if {[isquick]==0} {
+ do_execsql_test $tn.3 {
+ PRAGMA cache_size = 5;
+ WITH r(x,y) AS (
+ SELECT 1, randomblob(100)
+ UNION ALL
+ SELECT x+1, randomblob(100) FROM r
+ LIMIT 1000000
+ )
+ SELECT count(x), length(y) FROM r GROUP BY (x%5)
+ } {
+ 200000 100 200000 100 200000 100 200000 100 200000 100
+ }
}
}
« no previous file with comments | « third_party/sqlite/src/test/sort.test ('k') | third_party/sqlite/src/test/sort3.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698