Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:23
erlang
7670-snmp-agent-test-Adjust-IPv6-support-test.p...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 7670-snmp-agent-test-Adjust-IPv6-support-test.patch of Package erlang
From b2ade6d75b0094d397cdcaf18b36a850367f9925 Mon Sep 17 00:00:00 2001 From: Micael Karlberg <bmk@erlang.org> Date: Mon, 24 Jan 2022 18:44:43 +0100 Subject: [PATCH 10/12] [snmp|agent|test] Adjust IPv6 support test Support for socket can been configured out, so we need to handle that when we test for IPv6 support. --- lib/snmp/test/snmp_test_lib.erl | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/lib/snmp/test/snmp_test_lib.erl b/lib/snmp/test/snmp_test_lib.erl index 15d1817c01..75822eef88 100644 --- a/lib/snmp/test/snmp_test_lib.erl +++ b/lib/snmp/test/snmp_test_lib.erl @@ -593,7 +593,16 @@ has_support_ipv6() -> %% so for windows we need to use the old style... old_has_support_ipv6(); _ -> - socket:is_supported(ipv6) andalso has_valid_ipv6_address() + %% Socket can *also* be configured out, so we need to catch... + try socket:is_supported(ipv6) of + true -> + has_valid_ipv6_address(); + false -> + false + catch + _:_:_ -> + old_has_support_ipv6() + end end. has_valid_ipv6_address() -> -- 2.34.1
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor