commit:     ed3440a766d1d06282db32de0273e53ac7d74da9
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue Aug 17 01:37:37 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Aug 17 01:41:14 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ed3440a7

net-dns/c-ares: skip network tests

Closes: https://bugs.gentoo.org/807649
Signed-off-by: Sam James <sam <AT> gentoo.org>

 net-dns/c-ares/c-ares-1.17.2.ebuild | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/net-dns/c-ares/c-ares-1.17.2.ebuild 
b/net-dns/c-ares/c-ares-1.17.2.ebuild
index 8a95c494c5e..dd99e46267e 100644
--- a/net-dns/c-ares/c-ares-1.17.2.ebuild
+++ b/net-dns/c-ares/c-ares-1.17.2.ebuild
@@ -40,7 +40,19 @@ multilib_src_test() {
 
        # We're skipping the "real" network tests with the filter
        # see https://github.com/c-ares/c-ares/tree/main/test
-       ./arestest --gtest_filter=-*Live* || die "arestest failed!"
+       local network_tests=(
+               # Most live tests have Live in the name
+               *Live*
+               # These don't but are still in ares-test-live.cc => live
+               *GetTCPSock*
+               *TimeoutValue*
+               *GetSock*
+               *GetSock_virtualized*
+       )
+
+       # The format for disabling test1, test2, and test3 looks like:
+       # -test1:test2:test3
+       ./arestest --gtest_filter=-$(echo $(IFS=:; echo "${network_tests[*]}")) 
|| die "arestest failed!"
 }
 
 multilib_src_install_all() {

Reply via email to