Page MenuHomeFreeBSD

stat: Nits in stat tests
ClosedPublic

Authored by des on Apr 8 2026, 11:49 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Jun 3, 3:57 PM
Unknown Object (File)
Wed, May 27, 3:34 PM
Unknown Object (File)
Wed, May 27, 3:28 PM
Unknown Object (File)
Tue, May 26, 12:25 PM
Unknown Object (File)
Tue, May 26, 12:20 PM
Unknown Object (File)
Tue, May 26, 12:17 PM
Unknown Object (File)
Tue, May 26, 12:09 PM
Unknown Object (File)
Mon, May 25, 12:19 PM
Subscribers

Details

Summary
  • Use ourselves as test file instead of /COPYRIGHT, which may or may not be present in the test environment.
  • atf-check understands \n in strings, use it.
  • Some file systems don't like creating small holes, so create large ones instead. This means we need two variables: ps (page size) is the minimum size of a data region and the alignment for a hole, while hs (hole size) is the minimum size of the holes we create. This makes no difference on FreeBSD but makes it easier to port the test to other platforms.

MFC after: 1 week
Sponsored by: Klara, Inc.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable