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/corruptA.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/corrupt9.test ('k') | third_party/sqlite/src/test/corruptB.test » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/sqlite/src/test/corruptA.test
diff --git a/third_party/sqlite/src/test/corruptA.test b/third_party/sqlite/src/test/corruptA.test
index 9c7d228f4a502b69356e8d66e565ac0c4ec52429..bb9912bd2bc2579853e1f0ea43bb36b3d365958d 100644
--- a/third_party/sqlite/src/test/corruptA.test
+++ b/third_party/sqlite/src/test/corruptA.test
@@ -24,6 +24,10 @@ source $testdir/tester.tcl
#
do_not_use_codec
+# These tests deal with corrupt database files
+#
+database_may_be_corrupt
+
# Create a database to work with.
#
@@ -40,12 +44,12 @@ integrity_check corruptA-1.2
# is detected when opening the database file.
#
db close
-file copy -force test.db test.db-template
+forcecopy test.db test.db-template
set unreadable_version 02
ifcapable wal { set unreadable_version 03 }
do_test corruptA-2.1 {
- file copy -force test.db-template test.db
+ forcecopy test.db-template test.db
hexio_write test.db 19 $unreadable_version ;# the read format number
sqlite3 db test.db
catchsql {SELECT * FROM t1}
@@ -53,7 +57,7 @@ do_test corruptA-2.1 {
do_test corruptA-2.2 {
db close
- file copy -force test.db-template test.db
+ forcecopy test.db-template test.db
hexio_write test.db 21 41 ;# max embedded payload fraction
sqlite3 db test.db
catchsql {SELECT * FROM t1}
@@ -61,7 +65,7 @@ do_test corruptA-2.2 {
do_test corruptA-2.3 {
db close
- file copy -force test.db-template test.db
+ forcecopy test.db-template test.db
hexio_write test.db 22 1f ;# min embedded payload fraction
sqlite3 db test.db
catchsql {SELECT * FROM t1}
@@ -69,7 +73,7 @@ do_test corruptA-2.3 {
do_test corruptA-2.4 {
db close
- file copy -force test.db-template test.db
+ forcecopy test.db-template test.db
hexio_write test.db 23 21 ;# min leaf payload fraction
sqlite3 db test.db
catchsql {SELECT * FROM t1}
« no previous file with comments | « third_party/sqlite/src/test/corrupt9.test ('k') | third_party/sqlite/src/test/corruptB.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698