houseabsolute / Params-ValidationCompiler

Build an optimized subroutine parameter validator once, use it forever
https://metacpan.org/release/Params-ValidationCompiler/
Other
4 stars 5 forks source link

Test failures with old Class::XSAccessor #27

Closed DrHyde closed 1 year ago

DrHyde commented 1 year ago

With some older versions of Class::XSAccessor I get test failures:

...
# === Runtime Recommends ===
#
#     Module            Want Have
#     ----------------- ---- ----
#     Class::XSAccessor  any 1.13
#     Sub::Util         1.40 1.48
#
...
t/named/return-object.t .. 1/?
# Failed test 'with Class::XSAccessor'
# at t/named/return-object.t line 16.
# Caught exception in subtest: Can't locate object method "has_bar" via package "Params::ValidationCompiler::Compiler::OO::Args3::XS" at t/named/return-object.t line 89.
# Seeded srand with seed '20230104' from local date.
t/named/return-object.t .. Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/2 subtests

With the latest version (Class::XSAccessor 1.19) everything is fine. I suggest bumping the dependency version.

autarch commented 1 year ago

Thanks for the report. This is fixed in 0.31.