BUG: test script e_vacuum.test needs has_codec

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

BUG: test script e_vacuum.test needs has_codec

Noah Hart
According to vacuum.c

     /* A VACUUM cannot change the pagesize of an encrypted database. */

So the tests in e_vacuum.test which attempt to change page size need to be bracked with a test for codec

something like the following

# Determine if there is a codec available on this test.
#
if {[catch {sqlite3 -has-codec} r] || $r} {
  set has_codec 1
} else {
  set has_codec 0
}

if {!$has_codec} {
do_test e_vacuum-1.3.2.1 {
...
}

if {!$has_codec} {
do_test e_vacuum-1.3.3.2 {
...
}

~Noah Hart