[all-commits] [llvm/llvm-project] f3294c: [libc] Add socket test support library (#193207)

Pavel Labath via All-commits all-commits at lists.llvm.org
Tue May 5 06:51:48 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f3294c2338d27e2cd411fddcf1afd169d1996ccf
      https://github.com/llvm/llvm-project/commit/f3294c2338d27e2cd411fddcf1afd169d1996ccf
  Author: Pavel Labath <pavel at labath.sk>
  Date:   2026-05-05 (Tue, 05 May 2026)

  Changed paths:
    M libc/src/__support/CMakeLists.txt
    M libc/src/__support/c_string.h
    M libc/test/src/sys/socket/linux/CMakeLists.txt
    M libc/test/src/sys/socket/linux/bind_test.cpp
    M libc/test/src/sys/socket/linux/connect_accept_test.cpp
    M libc/test/src/sys/socket/linux/listen_test.cpp
    A libc/test/src/sys/socket/linux/socket_test_support.h

  Log Message:
  -----------
  [libc] Add socket test support library (#193207)

A couple of tests (and I plan to add a couple more) need to
create/compare unix domain socket addresses. This isn't completely
trivial due to the the interaction between the `addrlen` argument and
the terminating '\0', and the existing code doing that was subtly wrong
in some cases.

This patch centralizes the functions for these operations, reducing code
duplication and ensuring consistent (and correct) behavior everywhere.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list