From fb2569265260ee508500e46d82e4727afe55619f Mon Sep 17 00:00:00 2001 From: Tatsuo Ishii Date: Mon, 12 Sep 2022 13:48:26 +0900 Subject: [PATCH] Use $HOME/tmp or $HOME for the second Unix domain path. The socket API does not allow to use too long Unix domain socket paths. --- src/test/regression/tests/035.unix_sockets/test.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/test/regression/tests/035.unix_sockets/test.sh b/src/test/regression/tests/035.unix_sockets/test.sh index e25f761df..4d36a0725 100755 --- a/src/test/regression/tests/035.unix_sockets/test.sh +++ b/src/test/regression/tests/035.unix_sockets/test.sh @@ -22,7 +22,11 @@ do source ./bashrc.ports dir=`pwd` UNIX_SOCK_PATH1=/tmp - UNIX_SOCK_PATH2=$dir/run + if [ -d $HOME/tmp ];then + UNIX_SOCK_PATH2=$HOME/tmp + else + UNIX_SOCK_PATH2=$HOME + fi UNIX_SOCK_FILE=.s.PGSQL.$PGPOOL_PORT UNIX_SOCK_GROUP=wheel USER=`whoami` @@ -107,4 +111,4 @@ COMMENT_OUT ./shutdownall done -exit 0 \ No newline at end of file +exit 0 -- 2.39.5