diff options
author | Steve Hay <steve.m.hay@googlemail.com> | 2023-04-10 18:10:45 +0100 |
---|---|---|
committer | Steve Hay <steve.m.hay@googlemail.com> | 2023-04-10 18:10:45 +0100 |
commit | daed3ce1c3af9db39f19e27cbeaa579308f7f382 (patch) | |
tree | bd09e2b7e39aff739bac5e236751bb94241bd99e | |
parent | ca030d87985ef099b498045b688ee5fbe007c97d (diff) | |
download | perl-daed3ce1c3af9db39f19e27cbeaa579308f7f382.tar.gz |
Revert "Also adjust t/xsub_h.t to use $^V." part of 4a88c3486c for maint
The error produced in this test, running against perl 5.36.1, is:
Perl API version v1.0.16 of Pie does not match v5.36.0
which doesn't match the expected error when $^V is used because that is
5.36.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).
-rw-r--r-- | ext/XS-APItest/t/xsub_h.t | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/XS-APItest/t/xsub_h.t b/ext/XS-APItest/t/xsub_h.t index 51b3d70604..a7e2541e42 100644 --- a/ext/XS-APItest/t/xsub_h.t +++ b/ext/XS-APItest/t/xsub_h.t @@ -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; |