summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorunknown <df@kahlann.erinye.com>2006-12-18 13:44:57 +0100
committerunknown <df@kahlann.erinye.com>2006-12-18 13:44:57 +0100
commit052624e1bd2bb286a2505fcec033fcab801bd536 (patch)
treedb874cfb848ef979a41d6dc2883a19bfc06dd66f
parent5958296be13b59506fe5a5cdc44184a9a023d51a (diff)
parente55c9a7ab57ef0a8aeac0bb36ad8f585a52e5432 (diff)
downloadmariadb-git-052624e1bd2bb286a2505fcec033fcab801bd536.tar.gz
Merge kahlann.erinye.com:/home/df/mysql/build/mysql-4.1-build-work
into kahlann.erinye.com:/home/df/mysql/build/mysql-5.0-build-work mysql-test/mysql-test-run.pl: Auto merged
-rwxr-xr-xmysql-test/mysql-test-run.pl6
1 files changed, 6 insertions, 0 deletions
diff --git a/mysql-test/mysql-test-run.pl b/mysql-test/mysql-test-run.pl
index c2d8f8ae2f8..36f5b0a776f 100755
--- a/mysql-test/mysql-test-run.pl
+++ b/mysql-test/mysql-test-run.pl
@@ -58,6 +58,7 @@ $Devel::Trace::TRACE= 0; # Don't trace boring init stuff
use File::Path;
use File::Basename;
use File::Copy;
+use File::Temp qw / tempdir /;
use Cwd;
use Getopt::Long;
use Sys::Hostname;
@@ -1020,6 +1021,11 @@ sub command_line_setup () {
my $sockdir = $opt_tmpdir;
$sockdir =~ s|/+$||;
+ # On some operating systems, there is a limit to the length of a
+ # UNIX domain socket's path far below PATH_MAX, so try to avoid long
+ # socket path names.
+ $sockdir = tempdir(CLEANUP => 1) if ( length($sockdir) > 80 );
+
# Put this into a hash, will be a C struct
$master->[0]=