Skip to content

fileExtendedStatus test fails on ARM64 GHC 9.2.8 #364

@hasufell

Description

@hasufell

https://github.com/haskell/unix/actions/runs/21245637397/job/61134120433?pr=363#step:7:637

    fileExtendedStatus:          FAIL
      tests/FileExtendedStatus.hs:97:
      expected: ((33024,2049,0,1,1001,1001,0,Just 0,1769079222.758095344s,1769079222.758095344s,1769079222.758095344s),(False,False,False,True,False,False,False))
       but got: ((33024,2049,0,1,1001,1001,0,Just 0,1769079222.758095344s,0s,0s),(False,False,False,True,False,False,False))
      Use -p '/fileExtendedStatus/' to rerun this test only.

This is likely due to the fact that we do not check statx.stx_mask against the macros that were requested by the user (such as STX_MTIME).

This is also described in the manpage:

       Note that, in general, the kernel does not reject values in mask
       other than the above.  (For an exception, see EINVAL in errors.)
       Instead, it simply informs the caller which values are supported
       by this kernel and filesystem via the statx.stx_mask field.
       Therefore, do not simply set mask to UINT_MAX (all bits set), as
       one or more bits may, in the future, be used to specify an
       extension to the buffer.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions