summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDylan Yudaken <dylany@fb.com>2022-04-22 09:01:27 -0700
committerJens Axboe <axboe@kernel.dk>2022-04-22 11:18:08 -0600
commit44673763e7467d49a1ef4bba8a641f9dd4c6ff70 (patch)
tree2db56e90cc2630196f6128fd36ab1cda267e1174
parent861c121c931d33dae4fbeeab3eac86544d856d9a (diff)
downloadliburing-44673763e7467d49a1ef4bba8a641f9dd4c6ff70.tar.gz
liburing-44673763e7467d49a1ef4bba8a641f9dd4c6ff70.tar.bz2
test: use unique path for socket
Do not collide if multiple tests are running at once. Signed-off-by: Dylan Yudaken <dylany@fb.com> Link: https://lore.kernel.org/r/20220422160132.2891927-3-dylany@fb.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r--test/accept-test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/accept-test.c b/test/accept-test.c
index 71d9d80..4a904e4 100644
--- a/test/accept-test.c
+++ b/test/accept-test.c
@@ -35,7 +35,7 @@ int main(int argc, char *argv[])
memset(&addr, 0, sizeof(addr));
addr.sun_family = AF_UNIX;
- memcpy(addr.sun_path, "\0sock", 6);
+ memcpy(addr.sun_path, "\0sock2", 7);
ret = bind(fd, (struct sockaddr *)&addr, addrlen);
assert(ret != -1);