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