............................................................................................................................................................................................................................................................... Failures: 1) Callback interop C outside ffi call stack does not deadlock [#527] Failure/Error: Timeout.timeout(10){ Process.wait(pid) } Timeout::Error: execution expired # ./spec/ffi/callback_spec.rb:869:in `wait' # ./spec/ffi/callback_spec.rb:869:in `block (3 levels) in ' # /usr/share/ruby/timeout.rb:110:in `timeout' # ./spec/ffi/callback_spec.rb:869:in `block (2 levels) in ' 2) MemoryPointer allows writing as a size_t Failure/Error: raise TypeError, "unable to resolve type '#{name}'" TypeError: unable to resolve type 'size_t' # ./lib/ffi/types.rb:69:in `find_type' # ./lib/ffi/types.rb:177:in `type_size' # ./spec/ffi/rbx/memory_pointer_spec.rb:98:in `initialize' # ./spec/ffi/rbx/memory_pointer_spec.rb:98:in `new' # ./spec/ffi/rbx/memory_pointer_spec.rb:98:in `block (2 levels) in ' 3) MemoryPointer allows writing a custom typedef Failure/Error: raise TypeError, "unable to resolve type '#{name}'" TypeError: unable to resolve type 'size_t' # ./lib/ffi/types.rb:69:in `find_type' # ./lib/ffi/types.rb:41:in `typedef' # ./spec/ffi/rbx/memory_pointer_spec.rb:116:in `block (2 levels) in ' 4) Custom type definitions detects the correct type for size_t Failure/Error: expect do Module.new do extend FFI::Library ffi_lib "c" if FFI::Platform.windows? # _read() is a function of msvcrt.dll attach_function :_read, [:int, :pointer, :uint], :int else # read(2) is a standard UNIX function attach_function :read, [:int, :pointer, :size_t], :ssize_t expected no Exception, got # with backtrace: # ./lib/ffi/types.rb:69:in `find_type' # ./lib/ffi/library.rb:585:in `find_type' # ./lib/ffi/library.rb:239:in `block in attach_function' # ./lib/ffi/library.rb:239:in `map' # ./lib/ffi/library.rb:239:in `attach_function' # ./spec/ffi/typedef_spec.rb:86:in `block (4 levels) in ' # ./spec/ffi/typedef_spec.rb:78:in `initialize' # ./spec/ffi/typedef_spec.rb:78:in `new' # ./spec/ffi/typedef_spec.rb:78:in `block (3 levels) in ' # ./spec/ffi/typedef_spec.rb:77:in `block (2 levels) in ' # ./spec/ffi/typedef_spec.rb:77:in `block (2 levels) in ' Finished in 44.9 seconds (files took 21.75 seconds to load) 4878 examples, 4 failures Failed examples: rspec ./spec/ffi/callback_spec.rb:865 # Callback interop C outside ffi call stack does not deadlock [#527] rspec ./spec/ffi/rbx/memory_pointer_spec.rb:97 # MemoryPointer allows writing as a size_t rspec ./spec/ffi/rbx/memory_pointer_spec.rb:114 # MemoryPointer allows writing a custom typedef rspec ./spec/ffi/typedef_spec.rb:76 # Custom type definitions detects the correct type for size_t error: Bad exit status from /var/tmp/rpm-tmp.1k1Wsm (%check) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.1k1Wsm (%check) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.8/site-packages/mockbuild/trace_decorator.py", line 95, in trace result = func(*args, **kw) File "/usr/lib/python3.8/site-packages/mockbuild/util.py", line 746, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c /usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/rubygem-ffi.spec