opnsense-src/lib/libc/tests/secure
Kyle Evans 22178cb29f 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
2025-03-19 23:44:26 -05:00
..
fortify_poll_test.c libc: tests: fix the gethostname() and getdomainname() tests 2025-03-19 23:44:26 -05:00
fortify_random_test.c libc: tests: fix the gethostname() and getdomainname() tests 2025-03-19 23:44:26 -05:00
fortify_select_test.c libc: tests: fix the gethostname() and getdomainname() tests 2025-03-19 23:44:26 -05:00
fortify_socket_test.c libc: tests: fix the gethostname() and getdomainname() tests 2025-03-19 23:44:26 -05:00
fortify_stdio_test.c libc: tests: fix the gethostname() and getdomainname() tests 2025-03-19 23:44:26 -05:00
fortify_stdlib_test.c libc: tests: fix the gethostname() and getdomainname() tests 2025-03-19 23:44:26 -05:00
fortify_string_test.c libc: tests: fix the gethostname() and getdomainname() tests 2025-03-19 23:44:26 -05:00
fortify_strings_test.c libc: tests: fix the gethostname() and getdomainname() tests 2025-03-19 23:44:26 -05:00
fortify_uio_test.c libc: tests: fix the gethostname() and getdomainname() tests 2025-03-19 23:44:26 -05:00
fortify_unistd_test.c libc: tests: fix the gethostname() and getdomainname() tests 2025-03-19 23:44:26 -05:00
fortify_wchar_test.c libc: tests: fix the gethostname() and getdomainname() tests 2025-03-19 23:44:26 -05:00
generate-fortify-tests.lua libc: tests: fix the gethostname() and getdomainname() tests 2025-03-19 23:44:26 -05:00
Makefile libc: tests: fix luacheck warnings in the fortification test generator 2025-03-19 23:44:25 -05:00