Files
nixpkgs/pkgs/by-name/to/torsocks/torsocks-gethostbyaddr-darwin.patch
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

34 lines
822 B
Diff

diff --git a/tests/test_dns.c b/tests/test_dns.c
index 7e07663..acf095c 100644
--- a/tests/test_dns.c
+++ b/tests/test_dns.c
@@ -76,6 +76,8 @@ static void test_gethostbyname(const struct test_host *host)
return;
}
+#ifdef __linux__
+
static void test_gethostbyaddr_r_failed(void)
{
int result;
@@ -129,6 +131,8 @@ static void test_gethostbyaddr_r(const struct test_host *host)
ok(1, "Resolved address");
}
+#endif
+
static void test_gethostbyaddr(const struct test_host *host)
{
struct hostent *he;
@@ -199,8 +203,10 @@ int main(int argc, char **argv)
test_getaddrinfo(&tor_check);
test_gethostbyname(&tor_dir_auth1);
test_gethostbyaddr(&tor_dir_auth2);
+#ifdef __linux__
test_gethostbyaddr_r(&tor_dir_auth2);
test_gethostbyaddr_r_failed();
+#endif
test_getaddrinfo(&tor_localhost);
end: