mirror of
https://github.com/sqlite/sqlite.git
synced 2025-07-29 08:01:23 +03:00
Fix a test case to account for the fact that different versions of OpenBSD behave differently when a program tries to read() from a file-descriptor open on a directory.
FossilOrigin-Name: ecd712032f56a20d7df2bcf89b0d3b8d91dc72c552e27f0a4b23980bd49747b0
This commit is contained in:
@ -144,7 +144,7 @@ do_test backup2-9 {
|
||||
if {$tcl_platform(platform)=="windows"} {
|
||||
set msg {cannot open source database: unable to open database file}
|
||||
} elseif {[string match *BSD $tcl_platform(os)]} {
|
||||
set msg {restore failed: file is not a database}
|
||||
set msg {}
|
||||
} else {
|
||||
set msg {cannot open source database: disk I/O error}
|
||||
}
|
||||
@ -152,7 +152,8 @@ do_test backup2-10 {
|
||||
forcedelete bu3.db
|
||||
file mkdir bu3.db
|
||||
set rc [catch {db restore temp bu3.db} res]
|
||||
lappend rc $res
|
||||
if {0==[string match *BSD $tcl_platform(os)]} { lappend rc $res }
|
||||
set rc
|
||||
} [list 1 $msg]
|
||||
|
||||
# Try to restore from something that is not a database file.
|
||||
|
Reference in New Issue
Block a user