From 9d3769e101c45b242921292818354e45ab8e056f Mon Sep 17 00:00:00 2001 From: Stephen Lombardo Date: Tue, 8 Oct 2019 14:23:59 -0400 Subject: [PATCH] remove redundant backup tests that have been moved to sqlcipher-backup.test --- test/sqlcipher-core.test | 63 ---------------------------------------- 1 file changed, 63 deletions(-) diff --git a/test/sqlcipher-core.test b/test/sqlcipher-core.test index 211b76c..ca53990 100644 --- a/test/sqlcipher-core.test +++ b/test/sqlcipher-core.test @@ -801,67 +801,4 @@ db close dba close file delete -force test.db -do_test backup-encrypted-to-plain { - sqlite_orig db test.db - sqlite_orig db2 backup.db - execsql { - PRAGMA key = 'test'; - CREATE TABLE t1(a,b); - INSERT INTO t1(a,b) VALUES (1,2); - } - list [catch { sqlite3_backup B db2 main db main } msg] $msg -} {1 {sqlite3_backup_init() failed}} -db close -db2 close -file delete -force test.db -file delete -force backup.db - -do_test backup-plain-to-encrypted { - sqlite_orig db test.db - sqlite_orig db2 backup.db - execsql { - CREATE TABLE t1(a,b); - INSERT INTO t1(a,b) VALUES (1,2); - } - execsql { - PRAGMA key = 'test'; - } db2 - - list [catch { sqlite3_backup B db2 main db main } msg] $msg -} {1 {sqlite3_backup_init() failed}} -db close -db2 close -file delete -force test.db -file delete -force backup.db - -do_test backup-encrypted-to-encrypted { - sqlite_orig db test.db - sqlite_orig db2 backup.db - execsql { - PRAGMA key = 'test'; - CREATE TABLE t1(a,b); - INSERT INTO t1(a,b) VALUES (1,2); - } - execsql { - PRAGMA key = 'test'; - } db2 - list [catch { sqlite3_backup B db2 main db main } msg] $msg -} {1 {sqlite3_backup_init() failed}} -db close -db2 close -file delete -force test.db -file delete -force backup.db - -do_test backup-plain-to-plain { - sqlite_orig db test.db - sqlite_orig db2 backup.db - execsql { - CREATE TABLE t1(a,b); - INSERT INTO t1(a,b) VALUES (1,2); - } - sqlite3_backup B db2 main db main - B step -1 - B finish -} {SQLITE_OK} - finish_test