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