PerlFFI / FFI-Platypus

Write Perl bindings to non-Perl libraries with FFI. No XS required.
91 stars 24 forks source link

config/test bug in older versions of strawberry. #318

Closed plicease closed 3 years ago

plicease commented 3 years ago

Older versions of libffi don't work properly with record-value types, and this test should be skipped when we detect that.

t/type_record.t .......................... ok

    #   Failed test at t/type_record_value.t line 260.
    #          got: 'returning record values is not supported by some combination of your libffi/compiler/platypus at C:\Strawberry\cpan\build\FFI-Platypus-1.40_01-0\blib\lib/FFI/Platypus.pm line 315.
    # '
    #     expected: ''
        # No tests run!

    #   Failed test 'No tests run for subtest "good"'
    #   at t/type_record_value.t line 276.
    # Looks like you failed 2 tests of 3.

#   Failed test 'closure ret'
#   at t/type_record_value.t line 318.
Can't call method "call" on an undefined value at t/type_record_value.t line 270.
# Tests were run but no plan was declared and done_testing() was not seen.
# Looks like your test exited with 25 just after 3.
t/type_record_value.t .................... 
Dubious, test returned 25 (wstat 6400, 0x1900)
Failed 1/3 subtests 
plicease commented 3 years ago

This is fixed in 1.41 and 1.42