diff options
author | David Goulet <dgoulet@torproject.org> | 2020-07-09 09:05:53 -0400 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2020-07-09 13:39:56 -0400 |
commit | edb5ef2540d2bcdc73e3601937c057ca8385a3ca (patch) | |
tree | 67e969ae45d1c81882a1a6413503646f34efb07c | |
parent | 32a0bc2a84b0e73ab94e9428f9f8864bdc458444 (diff) | |
download | tor-edb5ef2540d2bcdc73e3601937c057ca8385a3ca.tar.gz tor-edb5ef2540d2bcdc73e3601937c057ca8385a3ca.zip |
test: Add IPv6 inet_pton double "::" test
Unclear but that somehow failed on Windows once (?) according to ticket #33768
but we are not seeing that failure.
Nevertheless, add a simple unit test.
Closes #33768
Signed-off-by: David Goulet <dgoulet@torproject.org>
-rw-r--r-- | src/test/test_addr.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/test/test_addr.c b/src/test/test_addr.c index cf5aad7e71..dbc581288d 100644 --- a/src/test/test_addr.c +++ b/src/test/test_addr.c @@ -341,6 +341,7 @@ test_addr_ip6_helpers(void *arg) test_pton6_bad("0XYXXY"); test_pton6_bad("0x"); test_pton6_bad("0X"); + test_pton6_bad("2000::1a00::1000:fc098"); /* test internal checking */ test_external_ip("fbff:ffff::2:7", 0); |