HomeFreeBSD

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

Description

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

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. This allows them to be meaningfully tested -- previously,
they were skipped much more often than not.

Reported by: jlduran
Reviewed by: jlduran, markj
Differential Revision: https://reviews.freebsd.org/D49237

Details

Provenance
kevansAuthored on Thu, Mar 20, 4:43 AM
Reviewer
jlduran
Differential Revision
D49237: libc: tests: fix the gethostname() and getdomainname() tests
Parents
rG09cdbf042f82: libc: tests: allow fortified test cases to require root
Branches
Unknown
Tags
Unknown