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

FossilOrigin-Name: 2d5cec53c2f31875d198d81ac4fd54e7066ea0ff
diff --git a/test/func.test b/test/func.test
index 6eec6a8..d2854e9 100644
--- a/test/func.test
+++ b/test/func.test
@@ -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 @@
     }
   } {{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 {