This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
t/lib/warnings/toke: Skip some tests on EBCDIC
authorKarl Williamson <khw@cpan.org>
Fri, 17 Oct 2014 03:16:24 +0000 (21:16 -0600)
committerKarl Williamson <khw@cpan.org>
Fri, 6 Mar 2015 04:48:27 +0000 (21:48 -0700)
The results depends on the particular EBCDIC platform being used, so I
don't think it is worth the effort.

t/lib/warnings/toke

index 4e15f75..5d31104 100644 (file)
@@ -1355,6 +1355,12 @@ syntax error at - line 3, near "=~ ?"
 Execution of - aborted due to compilation errors.
 ########
 # toke.c
+BEGIN {
+    if (ord('A') == 193) {
+        print "SKIPPED\n# result varies depending on which ebcdic platform";
+        exit 0;
+    }
+}
 use warnings;
 $a = "\c,";
 $a = "\c`";
@@ -1362,8 +1368,8 @@ no warnings 'syntax';
 $a = "\c,";
 $a = "\c`";
 EXPECT
-"\c," is more clearly written simply as "l" at - line 3.
-"\c`" is more clearly written simply as "\ " at - line 4.
+"\c," is more clearly written simply as "l" at - line 9.
+"\c`" is more clearly written simply as "\ " at - line 10.
 ########
 # toke.c
 BEGIN {