Skip to content

Unexpected stat(v)fs struct size on i686 #71

@tatokis

Description

@tatokis

The following two tests fail when running on a 32 bit x86 system.

==> Starting check()...
/usr/bin/ruby -I/usr/lib/ruby/gems/3.2.0/gems/rspec-support-3.13.1/lib:/usr/lib/ruby/gems/3.2.0/gems/rspec-core-3.13.0/lib /usr/lib/ruby/gems/3.2.0/gems/rspec-core-3.13.0/exe/rspec --pattern spec/\*\*\{,/\*/\*\*\}/\*_spec.rb
Run options: exclude {:dragonfly=>true, :windows=>true}
............................................................................................FF...

Failures:

  1) Sys::Filesystem FFI statfs struct is expected size
     Failure/Error: expect(Sys::Filesystem::Structs::Statfs.size).to eq(dummy.check_sizeof('struct statfs', header))

       expected: 64
            got: 84

       (compared using ==)
     # ./spec/sys_filesystem_unix_spec.rb:505:in `block (3 levels) in <top (required)>'

  2) Sys::Filesystem FFI statvfs struct is expected size
     Failure/Error: expect(Sys::Filesystem::Structs::Statvfs.size).to eq(dummy.check_sizeof('struct statvfs', 'sys/statvfs.h'))

       expected: 72
            got: 92

       (compared using ==)
     # ./spec/sys_filesystem_unix_spec.rb:509:in `block (3 levels) in <top (required)>'

Finished in 0.38878 seconds (files took 0.11209 seconds to load)
97 examples, 2 failures

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions