1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-30 19:03:16 +03:00

Update tests to work even if some features of the library are disabled. (CVS 2050)

FossilOrigin-Name: b11fc9b3f3a2711f98e7e45724aa1d30081197f3
This commit is contained in:
drh
2004-11-03 16:27:01 +00:00
parent a71aa00102
commit 6bf895708c
21 changed files with 303 additions and 213 deletions

View File

@ -11,7 +11,7 @@
# This file implements regression tests for SQLite library.
# This file implements tests for the page_size PRAGMA.
#
# $Id: pagesize.test,v 1.5 2004/11/02 14:24:35 drh Exp $
# $Id: pagesize.test,v 1.6 2004/11/03 16:27:02 drh Exp $
set testdir [file dirname $argv0]
@ -20,9 +20,11 @@ source $testdir/tester.tcl
do_test pagesize-1.1 {
execsql {PRAGMA page_size}
} 1024
do_test pagesize-1.2 {
catch {execsql {EXPLAIN PRAGMA page_size}}
} 0
ifcapable {explain} {
do_test pagesize-1.2 {
catch {execsql {EXPLAIN PRAGMA page_size}}
} 0
}
do_test pagesize-1.3 {
execsql {
CREATE TABLE t1(a);