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

Unified Diff: third_party/sqlite/sqlite-src-3080704/test/btreefault.test

Issue 2363173002: [sqlite] Remove obsolete reference version 3.8.7.4. (Closed)
Patch Set: Created 4 years, 3 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
Index: third_party/sqlite/sqlite-src-3080704/test/btreefault.test
diff --git a/third_party/sqlite/sqlite-src-3080704/test/btreefault.test b/third_party/sqlite/sqlite-src-3080704/test/btreefault.test
deleted file mode 100644
index 61104c5a79ada72c12a3bdf3b5ffaa33dfc0774f..0000000000000000000000000000000000000000
--- a/third_party/sqlite/sqlite-src-3080704/test/btreefault.test
+++ /dev/null
@@ -1,57 +0,0 @@
-# 2013 April 02
-#
-# 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 file contains fault injection tests designed to test the btree.c
-# module.
-#
-
-set testdir [file dirname $argv0]
-source $testdir/tester.tcl
-source $testdir/malloc_common.tcl
-set testprefix btreefault
-
-# This test will not work with an in-memory journal, as the database will
-# become corrupt if an error is injected into a transaction after it starts
-# writing data out to the db file.
-if {[permutation]=="inmemory_journal"} {
- finish_test
- return
-}
-
-do_test 1-pre1 {
- execsql {
- PRAGMA auto_vacuum = incremental;
- PRAGMA journal_mode = DELETE;
- CREATE TABLE t1(a PRIMARY KEY, b);
- INSERT INTO t1 VALUES(randomblob(1000), randomblob(100));
- INSERT INTO t1 SELECT randomblob(1000), randomblob(1000) FROM t1;
- INSERT INTO t1 SELECT randomblob(1000), randomblob(1000) FROM t1;
- INSERT INTO t1 SELECT randomblob(1000), randomblob(1000) FROM t1;
- INSERT INTO t1 SELECT randomblob(1000), randomblob(1000) FROM t1;
- DELETE FROM t1 WHERE rowid%2;
- }
- faultsim_save_and_close
-} {}
-
-do_faultsim_test 1 -prep {
- faultsim_restore_and_reopen
- set ::STMT [sqlite3_prepare db "SELECT * FROM t1 ORDER BY a" -1 DUMMY]
- sqlite3_step $::STMT
- sqlite3_step $::STMT
-} -body {
- execsql { PRAGMA incremental_vacuum = 10 }
-} -test {
- sqlite3_finalize $::STMT
- faultsim_test_result {0 {}}
- faultsim_integrity_check
-}
-
-finish_test
« no previous file with comments | « third_party/sqlite/sqlite-src-3080704/test/boundary4.test ('k') | third_party/sqlite/sqlite-src-3080704/test/busy.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698