[all-commits] [llvm/llvm-project] a43e0f: [libc++][test] try to directly create socket file ...

Wu Yingcong via All-commits all-commits at lists.llvm.org
Tue Jan 9 11:15:57 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a43e0f90b650fdcdf80bcb221d50a62905bf8977
      https://github.com/llvm/llvm-project/commit/a43e0f90b650fdcdf80bcb221d50a62905bf8977
  Author: Wu Yingcong <yingcong.wu at intel.com>
  Date:   2024-01-09 (Tue, 09 Jan 2024)

  Changed paths:
    M libcxx/test/support/filesystem_test_helper.h

  Log Message:
  -----------
  [libc++][test] try to directly create socket file in /tmp when filepath is too long (#77058)

If TMP is set to a folder which path is too long, the current libcxx
test helper function `create_socket()` will fail because of the test
temp folder `test_root`'s path is too long to be used in socket
creation.
In such case, this patch will try to create the socket file directly in
`/tmp` folder.

This patch also add an assertion for `bind()`.




More information about the All-commits mailing list