1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-27 20:41:58 +03:00

Omit calls to test_destructor16() if SQLITE_OMIT_UTF16 defined. (CVS 5508)

FossilOrigin-Name: 2d5cec53c2f31875d198d81ac4fd54e7066ea0ff
This commit is contained in:
shane
2008-07-31 01:47:11 +00:00
parent 9200309ef6
commit 2a5fc4d6f5
4 changed files with 20 additions and 14 deletions

View File

@ -11,7 +11,7 @@
# This file implements regression tests for SQLite library. The
# focus of this file is testing built-in functions.
#
# $Id: func.test,v 1.84 2008/07/16 18:20:09 drh Exp $
# $Id: func.test,v 1.85 2008/07/31 01:47:11 shane Exp $
set testdir [file dirname $argv0]
source $testdir/tester.tcl
@ -455,11 +455,13 @@ if {[db eval {PRAGMA encoding}]=="UTF-8"} {
}
} {{hello world} 1}
} else {
do_test func-12.1-utf16 {
execsql {
SELECT test_destructor16('hello world'), test_destructor_count();
ifcapable {utf16} {
do_test func-12.1-utf16 {
execsql {
SELECT test_destructor16('hello world'), test_destructor_count();
}
} {{hello world} 1}
}
} {{hello world} 1}
}
do_test func-12.2 {
execsql {