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

Unified Diff: third_party/sqlite/src/test/mallocL.test

Issue 949043002: Add //third_party/sqlite to dirs_to_snapshot, remove net_sql.patch (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/sqlite/src/test/mallocK.test ('k') | third_party/sqlite/src/test/malloc_common.tcl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/sqlite/src/test/mallocL.test
diff --git a/third_party/sqlite/src/test/mallocL.test b/third_party/sqlite/src/test/mallocL.test
new file mode 100644
index 0000000000000000000000000000000000000000..6532ca5e142399fd7b601771ff3bd8e96c5a978e
--- /dev/null
+++ b/third_party/sqlite/src/test/mallocL.test
@@ -0,0 +1,43 @@
+# 2014 August 12
+#
+# The author disclaims copyright to this source code. In place of
+# a legal notice, here is a blessing:
+#
+# May you do good and not evil.
+# May you find forgiveness for yourself and forgive others.
+# May you share freely, never taking more than you give.
+#
+#***********************************************************************
+#
+# This test script is designed to show that the assert() fix at
+# [f1cb48f412] really is required.
+#
+
+set testdir [file dirname $argv0]
+source $testdir/tester.tcl
+source $testdir/malloc_common.tcl
+set testprefix mallocL
+
+do_test 1.0 {
+ for {set i 0} {$i < 40} {incr i} {
+ lappend cols "c$i"
+ lappend vals $i
+ }
+
+ execsql "CREATE TABLE t1([join $cols ,])"
+ execsql "CREATE INDEX i1 ON t1([join $cols ,])"
+ execsql "INSERT INTO t1 VALUES([join $vals ,])"
+} {}
+
+for {set j 1} {$j < 40} {incr j} {
+ set ::sql "SELECT DISTINCT [join [lrange $cols 0 $j] ,] FROM t1"
+ do_faultsim_test 1.$j -faults oom* -body {
+ execsql $::sql
+ } -test {
+ faultsim_test_result [list 0 [lrange $::vals 0 $::j]]
+ }
+}
+
+
+finish_test
+
« no previous file with comments | « third_party/sqlite/src/test/mallocK.test ('k') | third_party/sqlite/src/test/malloc_common.tcl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698