[patch] for test/backup2.test

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[patch] for test/backup2.test

Pavel Volkov-2
Hello.
Please, make test 'test/backup2.test' more compatible with FreeBSD.
This is patch for it:

--- test/backup2.test.orig      2017-07-07 04:59:34 UTC
+++ test/backup2.test
@@ -143,7 +143,7 @@ do_test backup2-9 {
 #
 if {$tcl_platform(platform)=="windows"} {
   set msg {cannot open source database: unable to open database file}
-} elseif {$tcl_platform(os)=="OpenBSD"} {
+} elseif {$tcl_platform(os)=="OpenBSD"||$tcl_platform(os)=="FreeBSD"} {
   set msg {restore failed: file is encrypted or is not a database}
 } else {
   set msg {cannot open source database: disk I/O error}

Thank you.
_______________________________________________
sqlite-users mailing list
[hidden email]
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [patch] for test/backup2.test

Jungle Boogie
Hi All,
On 07/06/2017 10:51 PM, Pavel Volkov wrote:

> Hello.
> Please, make test 'test/backup2.test' more compatible with FreeBSD.
> This is patch for it:
>
> --- test/backup2.test.orig      2017-07-07 04:59:34 UTC
> +++ test/backup2.test
> @@ -143,7 +143,7 @@ do_test backup2-9 {
>   #
>   if {$tcl_platform(platform)=="windows"} {
>     set msg {cannot open source database: unable to open database file}
> -} elseif {$tcl_platform(os)=="OpenBSD"} {
> +} elseif {$tcl_platform(os)=="OpenBSD"||$tcl_platform(os)=="FreeBSD"} {
>     set msg {restore failed: file is encrypted or is not a database}
>   } else {
>     set msg {cannot open source database: disk I/O error}
>

Any chance of this patch getting accepted/reviewed?

Without it, this happens:
Time: backcompat.test 13 ms
 
 

! backup2-10 expected: [1 {cannot open source database: disk I/O error}]
 
 

! backup2-10 got:      [1 {restore failed: file is not a database}]



> Thank you.
_______________________________________________
sqlite-users mailing list
[hidden email]
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users
Loading...