1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-29 08:01:23 +03:00

Change things so that journal2.test works with ENABLE_ATOMIC_WRITE.

FossilOrigin-Name: a64d96db09ef2b7651fa4e98d3c7bf3ae5d3fe96
This commit is contained in:
dan
2010-06-21 12:34:29 +00:00
parent 153eda0aa4
commit e08341c664
5 changed files with 173 additions and 22 deletions

View File

@ -136,14 +136,14 @@ proc faultsim_save_and_close {} {
catch { db close }
return ""
}
proc faultsim_restore_and_reopen {} {
proc faultsim_restore_and_reopen {{dbfile test.db}} {
catch { db close }
foreach f [glob -nocomplain test.db*] { file delete -force $f }
foreach f2 [glob -nocomplain sv_test.db*] {
set f [string range $f2 3 end]
file copy -force $f2 $f
}
sqlite3 db test.db
sqlite3 db $dbfile
sqlite3_extended_result_codes db 1
sqlite3_db_config_lookaside db 0 0 0
}
@ -156,7 +156,7 @@ proc faultsim_integrity_check {{db db}} {
proc faultsim_delete_and_reopen {{file test.db}} {
catch { db close }
foreach f [glob -nocomplain test.db*] { file delete -force $f }
sqlite3 db test.db
sqlite3 db $file
}