Page MenuHomeFreeBSD

Expose ip6?_var.h kernel decls to sysunit tests
AbandonedPublic

Authored by rstone on Jan 25 2022, 9:36 PM.
Tags
None
Referenced Files
F122237745: D34038.id101927.diff
Thu, Jul 3, 3:16 PM
F122186454: D34038.id.diff
Thu, Jul 3, 2:46 AM
Unknown Object (File)
Jun 1 2025, 9:27 PM
Unknown Object (File)
Apr 22 2025, 3:17 PM
Unknown Object (File)
Apr 19 2025, 5:15 AM
Unknown Object (File)
Apr 18 2025, 10:21 PM
Unknown Object (File)
Apr 18 2025, 9:40 PM
Unknown Object (File)
Apr 18 2025, 6:21 PM

Details

Reviewers
vangyzen
imp

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 44095
Build 40983: arc lint + arc unit

Event Timeline

This revision is now accepted and ready to land.Jan 25 2022, 10:03 PM

Can you please provide more context? Why do we need this? Do we need to go around all of the includes and substitute _KERNEL to "_KERNEL || KERNEL_UT"? Why can't the unit tests just define _KERNEL instead?

Can you please provide more context? Why do we need this? Do we need to go around all of the includes and substitute _KERNEL to "_KERNEL || KERNEL_UT"? Why can't the unit tests just define _KERNEL instead?

Ryan gave more context in D34034, which is another in this series of similar reviews.

sys/netinet6/ip6_var.h
259–261

You could remove this #endif / #if pair.

glebius@ has requested a different approach where unit tests define _KERNEL and opt out of the KPI symbols that they don't want, rather than opting into the symbols that they do want.