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
0bae1957
Commit
0bae1957
authored
Oct 04, 2016
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
simplify the ipv6 check
parent
70dcb46e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
8 deletions
+3
-8
mysql-test/suite.pm
mysql-test/suite.pm
+3
-8
No files found.
mysql-test/suite.pm
View file @
0bae1957
...
...
@@ -56,15 +56,10 @@ sub skip_combinations {
sub
ipv6_ok
()
{
use
Socket
;
return
0
unless
socket
my
$sock
,
PF_INET6
,
SOCK_STREAM
,
getprotobyname
('
tcp
');
my
$ipv6_works
=
false
;
$!
=
""
;
# eval{}, if there's no Socket::sockaddr_in6 at all, old Perl installation <5.14
eval
{
my
$addr
=
sockaddr_in6
(
$baseport
,
Socket::
IN6ADDR_LOOPBACK
)
or
return
0
;
die
'
bind failed
'
unless
bind
$sock
,
$addr
;
close
$sock
;
$ipv6_works
=
true
;
};
return
$@
eq
""
&&
$ipv6_works
;
eval
{
bind
$sock
,
sockaddr_in6
(
$::baseport
,
Socket::
IN6ADDR_LOOPBACK
)
};
return
$@
eq
""
&&
$!
eq
""
}
$skip
{'
include/check_ipv6.inc
'}
=
'
No IPv6
'
unless
ipv6_ok
();
...
...
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