From 199bbc466d2905285111085f074659f7bc2e3e67 Mon Sep 17 00:00:00 2001 From: Stephen Lombardo Date: Sat, 9 Aug 2008 08:46:35 -0400 Subject: [PATCH] adjust test suite for new error message --- test/codec.test | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/test/codec.test b/test/codec.test index 092100a7..3bbb8b90 100644 --- a/test/codec.test +++ b/test/codec.test @@ -15,20 +15,15 @@ file delete -force test2.db set testdir [file dirname $argv0] source $testdir/tester.tcl +# If the library is not compiled with has_codec support then +# skip all tests in this file. if {![sqlite_orig -has-codec]} { finish_test return } -# If the library is not compiled with has_codec support then -# skip all tests in this file. -# -#ifcapable {! -has_codec} { -#} - # The database is initially empty. do_test codec-1.1 { - db close sqlite_orig db test.db execsql { SELECT name FROM sqlite_master WHERE type='table'; @@ -81,6 +76,7 @@ do_test codec-1.5 { PRAGMA key = 'testkey2'; SELECT name FROM sqlite_master WHERE type='table'; } -} {1 {database disk image is malformed}} +} {1 {file is encrypted or is not a database}} +db close finish_test