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
F113825586: D49237.id152451.diff
Fri, Apr 4, 4:14 AM
Unknown Object (File)
Wed, Apr 2, 7:23 AM
Unknown Object (File)
Fri, Mar 28, 6:41 AM
Unknown Object (File)
Sun, Mar 23, 3:42 AM
Unknown Object (File)
Thu, Mar 20, 10:38 AM
Unknown Object (File)
Tue, Mar 11, 6:26 PM
Unknown Object (File)
Fri, Mar 7, 6:23 AM
Unknown Object (File)
Fri, Mar 7, 4:20 AM
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