Skip to content

Commit

Permalink
Revert "Also adjust t/xsub_h.t to use $^V." part of 4a88c34 for maint
Browse files Browse the repository at this point in the history
The error produced in this test, running against perl 5.34.1, is:

Perl API version v1.0.16 of Pie does not match v5.34.0

which doesn't match the expected error when $^V is used because that is
5.34.1.

It's the API version that we're expecting in the output, and that's frozen
at .0 for maint releases (unlike blead, where it incremented for every
release).
  • Loading branch information
steve-m-hay committed Feb 26, 2022
1 parent 80abe61 commit 5c6c303
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/XS-APItest/t/xsub_h.t
Expand Up @@ -117,7 +117,7 @@ foreach $XS_VERSION (undef, @versions) {
is_deeply([XS_APIVERSION_valid("Pie")], [], "XS_APIVERSION_BOOTCHECK passes");
is(eval {XS_APIVERSION_invalid("Pie"); 1}, undef,
"XS_APIVERSION_BOOTCHECK croaks for an invalid version");
like($@, qr/Perl API version v1.0.16 of Pie does not match \Q$^V\E/a,
like($@, qr/Perl API version v1.0.16 of Pie does not match v5\.\d+\.\d+/,
"expected error");

my @xsreturn;
Expand Down

0 comments on commit 5c6c303

Please sign in to comment.