Page MenuHomeFreeBSD

libc/tests: add test for *_MAX, *_MIN, and *_WIDTH
Needs ReviewPublic

Authored by fuz on Wed, Nov 19, 7:28 PM.
Tags
None
Referenced Files
F136836675: D53831.id.diff
Wed, Nov 19, 11:14 PM
F136832161: D53831.diff
Wed, Nov 19, 10:15 PM
F136830808: D53831.diff
Wed, Nov 19, 10:02 PM
Subscribers
None

Details

Reviewers
markj
imp
Summary

This file checks the correctness of the various _MAX, _MIN, and
_WIDTH macros defined for the libc types. It assumes that none
of the types have padding bits.

Test Plan

this is the test for D53830

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 68745
Build 65628: arc lint + arc unit

Event Timeline

fuz requested review of this revision.Wed, Nov 19, 7:28 PM
fuz created this revision.

This looks like it's really testing the host's (cross-)build environment. That seems useful, but it's not the same as testing the installation itself, e.g., a test could invoke cc to compile this file or something similar and verify that it succeeded. Should we do both? Is there some reason this test on its own is sufficient?