[all-commits] [llvm/llvm-project] 4c36c4: [libc] Migrate sys/socket tests to use ErrnoChecki...

Alexey Samsonov via All-commits all-commits at lists.llvm.org
Wed Mar 19 15:33:41 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4c36c425ec7d4decd177cedc9609154e12b98f27
      https://github.com/llvm/llvm-project/commit/4c36c425ec7d4decd177cedc9609154e12b98f27
  Author: Alexey Samsonov <vonosmas at gmail.com>
  Date:   2025-03-19 (Wed, 19 Mar 2025)

  Changed paths:
    M libc/test/UnitTest/ErrnoSetterMatcher.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/send_recv_test.cpp
    M libc/test/src/sys/socket/linux/sendmsg_recvmsg_test.cpp
    M libc/test/src/sys/socket/linux/sendto_recvfrom_test.cpp
    M libc/test/src/sys/socket/linux/socket_test.cpp
    M libc/test/src/sys/socket/linux/socketpair_test.cpp
    M utils/bazel/llvm-project-overlay/libc/test/src/sys/socket/BUILD.bazel

  Log Message:
  -----------
  [libc] Migrate sys/socket tests to use ErrnoCheckingTest. (#132107)

Also use ErrnoSetterMatcher to verify the function return values and
verify/clear out errno values. Fix the bug in ErrnoSetterMatcher error
reporting machinery to properly convert errno values into errno names to
make error messages easier to debug.



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