Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
67580cd2
Commit
67580cd2
authored
Sep 20, 2008
by
Magnus Svensson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make sure the direcory where the test socket is to be created exists
parent
2f5e9826
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
mysql-test/lib/My/Platform.pm
mysql-test/lib/My/Platform.pm
+8
-1
No files found.
mysql-test/lib/My/Platform.pm
View file @
67580cd2
...
...
@@ -17,6 +17,8 @@
package
My::
Platform
;
use
strict
;
use
File::
Basename
;
use
My::File::
Path
;
# Patched version of File::Path
use
base
qw(Exporter)
;
our
@EXPORT
=
qw(IS_CYGWIN IS_WINDOWS IS_WIN32PERL
...
...
@@ -104,11 +106,16 @@ sub check_socket_path_length {
my
$sock
;
eval
{
# Create the directories where the
# socket till be created
mkpath
(
dirname
(
$path
));
$sock
=
new
IO::Socket::
UNIX
(
Local
=>
$path
,
Listen
=>
1
,
);
};
if
(
$@
)
{
...
...
@@ -116,7 +123,7 @@ sub check_socket_path_length {
return
2
;
}
if
(
!
defined
$sock
){
#
Could not create a UNIX domain socket
#
print "Could not create UNIX domain socket: $!\n";
return
3
;
}
if
(
$path
ne
$sock
->
hostpath
()){
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment