Page MenuHomeFreeBSD

libc: tests: fix the gethostname() and getdomainname() tests
ClosedPublic

Authored by kevans on Mar 5 2025, 1:35 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Nov 7, 9:11 PM
Unknown Object (File)
Wed, Nov 5, 2:08 AM
Unknown Object (File)
Wed, Oct 29, 10:30 AM
Unknown Object (File)
Sat, Oct 25, 4:27 AM
Unknown Object (File)
Fri, Oct 24, 4:44 AM
Unknown Object (File)
Oct 1 2025, 6:08 PM
Unknown Object (File)
Oct 1 2025, 5:41 PM
Unknown Object (File)
Oct 1 2025, 5:14 PM
Subscribers

Details

Summary

Instead of relying on any particular domainname and hostname to succeed,
spin up a jail before we execute the test with them set to some known,
fixed values.

Diff Detail

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