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

Make sure a test of multiplex shim doesn't fail if a file already exists.

FossilOrigin-Name: 80de240a329d8df4aa1e437711bf6ed889d92c5f
This commit is contained in:
shaneh
2010-12-01 22:08:45 +00:00
parent 72fe10fd15
commit f5913a27bf
3 changed files with 12 additions and 9 deletions

View File

@ -26,7 +26,7 @@ proc multiplex_name {name chunk} {
if {$chunk==0} { return $name }
set num [format "%02d" $chunk]
ifcapable {multiplex_ext_overwrite} {
set name [string range $name 0 [expr [string length $name]-2-1]]
set name [string range $name 0 [expr [string length $name]-2-1]]
}
return $name$num
}
@ -54,6 +54,9 @@ proc multiplex_delete {name} {
db close
multiplex_delete test.db
multiplex_delete test2.db
#-------------------------------------------------------------------------
# multiplex-1.1.*: Test initialize and shutdown.
@ -123,7 +126,7 @@ do_test multiplex-2.2.1 {
do_test multiplex-2.2.3 { file size [multiplex_name test.db 0] } {6144}
do_test multiplex-2.3.1 {
sqlite3 db2 bak.db
sqlite3 db2 test2.db
db2 close
} {}