]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
test: adjust test_06_13 for 0100::/64 being blackholed
authorStefan Eissing <stefan@eissing.org>
Mon, 20 Jul 2026 11:50:34 +0000 (13:50 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 21 Jul 2026 21:52:35 +0000 (23:52 +0200)
Fixes #22344
Reported-by: Carlos Henrique Lima Melara
Closes #22355

tests/http/test_06_eyeballs.py

index 8e2104df19e6af3dc9f8666a10a5634e14f38ea1..1dc3726f4887626abc57586cbc440b1005ad9b86 100644 (file)
@@ -109,7 +109,16 @@ class TestEyeballs:
     @pytest.mark.skipif(condition=not Env.curl_is_verbose(), reason="needs curl verbose strings")
     def test_06_13_timers(self, env: Env):
         curl = CurlClient(env=env)
-        # IPv6 0100::/64 is supposed to go into the void (rfc6666)
+        # IPv6 0100::/64 is supposed to go into the void (rfc6666), but in
+        # some implementations, this is broken. Try to detect this
+        r = curl.http_download(urls=['https://xxx.invalid/'], extra_args=[
+            '--resolve', 'xxx.invalid:443:0100::1',
+            '--connect-timeout', '0.5',
+        ])
+        # this should error with CURLE_OPERATION_TIMEDOUT
+        if r.exit_code != 28:
+            pytest.skip('system does not blackhole 0100::/64')
+
         r = curl.http_download(urls=['https://xxx.invalid/'], extra_args=[
             '--resolve', 'xxx.invalid:443:0100::1,0100::2,0100::3',
             '--connect-timeout', '1',