From: Terry Wilson Date: Thu, 23 Jun 2011 03:10:38 +0000 (+0000) Subject: Remove tests for parsing address with invalid port X-Git-Tag: 1.8.5-rc1~11^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=58ff18fbd61ffc72b7e5da8e03caa8633c708ad3;p=thirdparty%2Fasterisk.git Remove tests for parsing address with invalid port getaddrinfo on OS X returns with EAI_NONAME error when passed a port greater than 65535. Linux throws no error, so remove the tests for now. git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@324557 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/tests/test_netsock2.c b/tests/test_netsock2.c index bdc92fbede..3bbf25770b 100644 --- a/tests/test_netsock2.c +++ b/tests/test_netsock2.c @@ -54,7 +54,6 @@ AST_TEST_DEFINE(parsing) { "1.256.3.4", 0 }, { "256.0.0.1", 0 }, { "1.2.3.4:5060", 1 }, - { "1.2.3.4:99999", 0}, { "::ffff:5.6.7.8", 1 }, { "fdf8:f53b:82e4::53", 1 }, { "fe80::200:5aee:feaa:20a2", 1 }, @@ -70,7 +69,6 @@ AST_TEST_DEFINE(parsing) { "[2001::1]", 1 }, { "[2001:0000:4136:e378:8000:63bf:3fff:fdd2]:5060", 1 }, { "2001:0000:4136:e378:8000:63bf:3fff:fdd2:5060", 0 }, /* port, but no brackets */ - { "[2001:0000:4136:e378:8000:63bf:3fff:fdd2]:90000", 0 }, { "[fe80::200:5aee:feaa:20a2%eth0]", 1 }, /* link-local with scope id */ { "[fe80::200::abcd", 0 }, /* multiple zero expansions */ };