Page MenuHomeFreeBSD

stat: Nits in stat tests
ClosedPublic

Authored by des on Wed, Apr 8, 11:49 AM.
Tags
None
Referenced Files
F152082755: D56304.diff
Sun, Apr 12, 2:54 PM
Unknown Object (File)
Fri, Apr 10, 12:43 PM
Unknown Object (File)
Wed, Apr 8, 3:12 PM
Subscribers

Details

Reviewers
kevans
Group Reviewers
Klara
Commits
rG8cbd3949297d: stat: Nits in stat tests
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