develooper Front page | perl.dbd.oracle.changes | Postings from April 2012

[svn:dbd-oracle] r15286 - in dbd-oracle/trunk: . t

From:
mjevans
Date:
April 22, 2012 09:30
Subject:
[svn:dbd-oracle] r15286 - in dbd-oracle/trunk: . t
Message ID:
20120422163017.E26FE184B97@xx12.develooper.com
Author: mjevans
Date: Sun Apr 22 09:30:16 2012
New Revision: 15286

Modified:
   dbd-oracle/trunk/Changes
   dbd-oracle/trunk/t/24implicit_utf8.t

Log:
skip 24implicit_utf8.t if chr set is not UTF-8


Modified: dbd-oracle/trunk/Changes
==============================================================================
--- dbd-oracle/trunk/Changes	(original)
+++ dbd-oracle/trunk/Changes	Sun Apr 22 09:30:16 2012
@@ -14,6 +14,8 @@
  - Fixed RT71343 - Oracle 9i does not have OCI_ATTR_TAF_ENABLED
    or OCI_ATTR_RESERVED_15/16 so cannot build.
 
+ - skip 24implicit_utf8.t if chr set is not UTF-8
+
  [MISCELLANEOUS]
 
  - minor change to confusing debug output for input parameters

Modified: dbd-oracle/trunk/t/24implicit_utf8.t
==============================================================================
--- dbd-oracle/trunk/t/24implicit_utf8.t	(original)
+++ dbd-oracle/trunk/t/24implicit_utf8.t	Sun Apr 22 09:30:16 2012
@@ -16,18 +16,17 @@
 SKIP: {
     plan skip_all => "Unable to run 8bit char test, perl version is less than 5.6" unless ( $] >= 5.006 );
     plan skip_all => "Oracle charset tests unreliable for Oracle 8 client"
-	if ORA_OCI() < 9.0 and !$ENV{DBD_ALL_TESTS};
-
+        if ORA_OCI() < 9.0 and !$ENV{DBD_ALL_TESTS};
     $dbh = db_handle();	# just to check connection and db NCHAR character set
-    
-    
+
     plan skip_all => "Unable to connect to Oracle" if not $dbh;
     plan skip_all => "Database NCHAR character set is not Unicode" if not db_nchar_is_utf($dbh) ;
+    plan skip_all => "database character set is not Unicode" unless db_ochar_is_utf($dbh);
     $dbh->disconnect();
 
     # testing implicit csform (dbhimp.c sets csform implicitly)
     my $tdata = test_data( 'wide_nchar' );
-    my $testcount = 0 
+    my $testcount = 0
                   + insert_test_count( $tdata )
                   + select_test_count( $tdata ) * 1;
                   ;
@@ -40,8 +39,8 @@
         $dbh->disconnect() if $dbh;
 	undef $dbh;
         # testing with NLS_NCHAR=$nchar_cset
-        SKIP: { 
-            set_nls_nchar( $nchar_cset ,1 ); 
+        SKIP: {
+            set_nls_nchar( $nchar_cset ,1 );
             $dbh = db_handle();
 	    show_db_charsets($dbh);
             skip "failed to connect to oracle with NLS_NCHAR=$nchar_cset" ,$testcount if not $dbh;



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About