Index: postgresql-9.3-9.3~beta2/contrib/pg_upgrade/test.sh
===================================================================
--- postgresql-9.3-9.3~beta2.orig/contrib/pg_upgrade/test.sh	2013-06-26 15:12:56.317548346 +0200
+++ postgresql-9.3-9.3~beta2/contrib/pg_upgrade/test.sh	2013-06-26 15:12:56.313548346 +0200
@@ -25,7 +25,7 @@
 	*)		LISTEN_ADDRESSES="" ;;
 esac
 
-POSTMASTER_OPTS="-F -c listen_addresses=$LISTEN_ADDRESSES"
+POSTMASTER_OPTS="-F -c listen_addresses=$LISTEN_ADDRESSES -c unix_socket_directories=/tmp"
 
 temp_root=$PWD/tmp_check
 
@@ -82,7 +82,7 @@
 unset PGSSLMODE
 unset PGREQUIRESSL
 unset PGCONNECT_TIMEOUT
-unset PGHOST
+export PGHOST="/tmp"
 unset PGHOSTADDR
 
 # Select a non-conflicting port number, similarly to pg_regress.c
