SKIP label was missing.
authorJarkko Hietaniemi <jhi@iki.fi>
Thu, 5 Jun 2003 17:26:04 +0000 (17:26 +0000)
committerJarkko Hietaniemi <jhi@iki.fi>
Thu, 5 Jun 2003 17:26:04 +0000 (17:26 +0000)
p4raw-id: //depot/perl@19693

t/io/utf8.t

index c7ad296..f77aa3f 100755 (executable)
@@ -160,13 +160,15 @@ ok( $x eq $chr );
 
 # Now we have a deformed file.
 
-if (ord('A') == 193) {
-    skip( "EBCDIC doesn't complain" );
-} else {
-    open F, "<:utf8", "a" or die $!;
-    $x = <F>; chomp $x;
-    local $SIG{__WARN__} = sub { ok( 1 ) };
-    eval { sprintf "%vd\n", $x };
+SKIP: {
+    if (ord('A') == 193) {
+       skip( "EBCDIC doesn't complain" );
+    } else {
+       open F, "<:utf8", "a" or die $!;
+       $x = <F>; chomp $x;
+       local $SIG{__WARN__} = sub { ok( 1 ) };
+       eval { sprintf "%vd\n", $x };
+    }
 }
 
 close F;