HomeFreeBSD

socket tests: Clean up the MSG_TRUNC regression tests a bit

Description

socket tests: Clean up the MSG_TRUNC regression tests a bit

  • Fix style.
  • Move test case-specific code out of the shared function and into the individual test cases.
  • Remove unneeded setting of SO_REUSEPORT.
  • Avoid unnecessary copying.
  • Use ATF_REQUIRE* instead of ATF_CHECK*. The former cause test execution to stop after a failed assertion, which is what we want.
  • Add a test case for AF_LOCAL/SOCK_SEQPACKET sockets.

MFC after: 1 week

(cherry picked from commit b5e7dbac756afb49c58315c7081737b34a1d2dfd)

Details

Provenance
markjAuthored on Oct 16 2023, 9:35 PM
Parents
rG2d7b5953dd90: geom_linux_lvm: Avoid removing from vg_list before inserting
Branches
Unknown
Tags
Unknown