167e224183
- Version update to 1.15.0: * Add ares_init_options() configurability for path to resolv.conf file * Ability to exclude building of tools (adig, ahost, acountry) in CMake * Report ARES_ENOTFOUND for .onion domain names as per RFC7686 (bsc#1125306) * Apply the IPv6 server blacklist to all nameserver sources * Prevent changing name servers while queries are outstanding * ares_set_servers_csv() on failure should not leave channel in a bad state - enable unit tests - disable-live-tests.patch: disable tests to live servers - onion-crash.patch: backport fix for a crash affecting .onion TLD OBS-URL: https://build.opensuse.org/request/show/674652 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/c-ares?expand=0&rev=7
57 lines
2.0 KiB
Diff
57 lines
2.0 KiB
Diff
Index: c-ares-1.15.0/test/Makefile.inc
|
|
===================================================================
|
|
--- c-ares-1.15.0.orig/test/Makefile.inc
|
|
+++ c-ares-1.15.0/test/Makefile.inc
|
|
@@ -13,7 +13,6 @@ TESTSOURCES = ares-test-main.cc \
|
|
ares-test-parse-srv.cc \
|
|
ares-test-parse-txt.cc \
|
|
ares-test-misc.cc \
|
|
- ares-test-live.cc \
|
|
ares-test-mock.cc \
|
|
ares-test-internal.cc \
|
|
dns-proto.cc \
|
|
Index: c-ares-1.15.0/test/ares-test-misc.cc
|
|
===================================================================
|
|
--- c-ares-1.15.0.orig/test/ares-test-misc.cc
|
|
+++ c-ares-1.15.0/test/ares-test-misc.cc
|
|
@@ -47,10 +47,12 @@ TEST_F(DefaultChannelTest, SetServers) {
|
|
EXPECT_EQ(expected, GetNameServers(channel_));
|
|
|
|
// Change not allowed while request is pending
|
|
+ /*
|
|
HostResult result;
|
|
ares_gethostbyname(channel_, "www.google.com.", AF_INET, HostCallback, &result);
|
|
EXPECT_EQ(ARES_ENOTIMP, ares_set_servers(channel_, &server1));
|
|
ares_cancel(channel_);
|
|
+ */
|
|
}
|
|
|
|
TEST_F(DefaultChannelTest, SetServersPorts) {
|
|
@@ -77,10 +79,12 @@ TEST_F(DefaultChannelTest, SetServersPor
|
|
EXPECT_EQ(expected, GetNameServers(channel_));
|
|
|
|
// Change not allowed while request is pending
|
|
+ /*
|
|
HostResult result;
|
|
ares_gethostbyname(channel_, "www.google.com.", AF_INET, HostCallback, &result);
|
|
EXPECT_EQ(ARES_ENOTIMP, ares_set_servers_ports(channel_, &server1));
|
|
ares_cancel(channel_);
|
|
+ */
|
|
}
|
|
|
|
TEST_F(DefaultChannelTest, SetServersCSV) {
|
|
@@ -109,11 +113,13 @@ TEST_F(DefaultChannelTest, SetServersCSV
|
|
EXPECT_EQ(expected2, GetNameServers(channel_));
|
|
|
|
// Change not allowed while request is pending
|
|
+ /*
|
|
HostResult result;
|
|
ares_gethostbyname(channel_, "www.google.com.", AF_INET, HostCallback, &result);
|
|
EXPECT_EQ(ARES_ENOTIMP, ares_set_servers_csv(channel_, "1.2.3.4,2.3.4.5"));
|
|
EXPECT_EQ(ARES_ENOTIMP, ares_set_servers_ports_csv(channel_, "1.2.3.4:56,2.3.4.5:67"));
|
|
ares_cancel(channel_);
|
|
+ */
|
|
|
|
// Should survive duplication
|
|
ares_channel channel2;
|