b8c914
From 97e57bec1f0ba4f0c3b1dc18ee146632010e3373 Mon Sep 17 00:00:00 2001
b8c914
From: Karl Williamson <khw@cpan.org>
b8c914
Date: Sat, 15 Jul 2017 19:36:25 -0600
b8c914
Subject: [PATCH] t/lib/warnings/utf8: Fix test
b8c914
MIME-Version: 1.0
b8c914
Content-Type: text/plain; charset=UTF-8
b8c914
Content-Transfer-Encoding: 8bit
b8c914
b8c914
There is some randomness to this test added to fix [perl #131646].
b8c914
Change what passes to be a pattern that matches the correct template
b8c914
b8c914
Signed-off-by: Petr Písař <ppisar@redhat.com>
b8c914
---
b8c914
 t/lib/warnings/utf8 | 3 ++-
b8c914
 1 file changed, 2 insertions(+), 1 deletion(-)
b8c914
b8c914
diff --git a/t/lib/warnings/utf8 b/t/lib/warnings/utf8
b8c914
index 9066308..dfc58c1 100644
b8c914
--- a/t/lib/warnings/utf8
b8c914
+++ b/t/lib/warnings/utf8
b8c914
@@ -781,4 +781,5 @@ no warnings;
b8c914
 use warnings 'utf8';
b8c914
 for(uc 0..t){0~~pack"UXc",exp}
b8c914
 EXPECT
b8c914
-Malformed UTF-8 character: \xc2\x00 (unexpected non-continuation byte 0x00, immediately after start byte 0xc2; need 2 bytes, got 1)  in smart match at - line 9.
b8c914
+OPTIONS regex
b8c914
+Malformed UTF-8 character: \\x([[:xdigit:]]{2})\\x([[:xdigit:]]{2}) \(unexpected non-continuation byte 0x\2, immediately after start byte 0x\1; need 2 bytes, got 1\)  in smart match at - line 9.
b8c914
-- 
b8c914
2.9.4
b8c914