[test] [support] Use socket()+bind() to create unix sockets portably
authorMichal Gorny <mgorny@gentoo.org>
Sun, 16 Dec 2018 15:12:06 +0000 (15:12 +0000)
committerMichal Gorny <mgorny@gentoo.org>
Sun, 16 Dec 2018 15:12:06 +0000 (15:12 +0000)
commit4ce222198cfde1c013b86b2c694a835a47ac153b
tree83d63b12efc46c475b31a9b01ba8ef6ee7318e38
parent13ac2f15b0416bf85f53753657dafda6da4c353f
[test] [support] Use socket()+bind() to create unix sockets portably

Replace the mknod() call with socket() + bind() for creating unix
sockets.  The mknod() method is not portable and does not work
on NetBSD while binding the socket should work on all systems supporting
unix sockets.

Differential Revision: https://reviews.llvm.org/D55576

llvm-svn: 349305
libcxx/test/support/filesystem_dynamic_test_helper.py