8000 Explicitly close db in tests following cipher_migrate · githubzhaoliang/sqlcipher@8d0acdb · GitHub
[go: up one dir, main page]

Skip to content

Commit 8d0acdb

Browse files
Explicitly close db in tests following cipher_migrate
1 parent 8f11084 commit 8d0acdb

File tree

1 file changed

+18
-4
lines changed

1 file changed

+18
-4
lines changed

test/crypto.test

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2170,13 +2170,20 @@ do_test can-migrate-with-keys-longer-than-64-characters {
21702170
PRAGMA user_version = 5;
21712171
}
21722172
db close
2173+
21732174
sqlite_orig db test.db
21742175
execsql {
2175-
PRAGMA key = "012345678901234567890123456789012345678901234567890123456789012345";
2176+
PRAGMA key = "012345678901234567890123456789012345678901234567890123456789012345";
21762177
PRAGMA cipher_migrate;
2178+
}
2179+
db close
2180+
2181+
sqlite_orig db test.db
2182+
execsql {
2183+
PRAGMA key = "012345678901234567890123456789012345678901234567890123456789012345";
21772184
PRAGMA user_version;
21782185
}
2179-
} {0 5}
2186+
} {5}
21802187
db close
21812188
file delete -force test.db
21822189

@@ -2189,13 +2196,20 @@ do_test can-migrate-with-raw-hex-key {
21892196
PRAGMA user_version = 5;
21902197
}
21912198
db close
2199+
21922200
sqlite_orig db test.db
21932201
execsql {
2194-
PRAGMA key = "x'2DD29CA851E7B56E4697B0E1F08507293D761A05CE4D1B628663F411A8086D99'";
2202+
PRAGMA key = "x'2DD29CA851E7B56E4697B0E1F08507293D761A05CE4D1B628663F411A8086D99'";
21952203
PRAGMA cipher_migrate;
2204+
}
2205+
2206+
sqlite_orig db test.db
2207+
execsql {
2208+
PRAGMA key = "x'2DD29CA851E7B56E4697B0E1F08507293D761A05CE4D1B628663F411A8086D99'";
21962209
PRAGMA user_version;
21972210
}
2198-
} {0 5}
2211+
2212+
} {5}
21992213
db close
22002214
file delete -force test.db
22012215

0 commit comments

Comments
 (0)
0