Skip to content

Commit 9c4ad7f

Browse files
committed
fix XS-APItest test about Perl API version
1 parent bb9ed60 commit 9c4ad7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/XS-APItest/t/xsub_h.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ foreach $XS_VERSION (undef, @versions) {
117117
is_deeply([XS_APIVERSION_valid("Pie")], [], "XS_APIVERSION_BOOTCHECK passes");
118118
is(eval {XS_APIVERSION_invalid("Pie"); 1}, undef,
119119
"XS_APIVERSION_BOOTCHECK croaks for an invalid version");
120-
like($@, qr/Perl API version v1.0.16 of Pie does not match v5\.\d+\.\d+/,
120+
like($@, qr/Perl API version v1.0.16 of Pie does not match v(?:5\.\d+\.\d+|\d+\.\d+) /,
121121
"expected error");
122122

123123
my @xsreturn;

0 commit comments

Comments
 (0)