forked from Mirrors/freeswitch
Tue Jan 13 15:03:25 CST 2009 Pekka Pessi <first.last@nokia.com>
* torture_bnf.c: added some host_is_domain() cases git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11814 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
fa2fe6a216
commit
6b60944349
@ -320,6 +320,11 @@ int host_test(void)
|
||||
TEST(host_has_domain_invalid("valid."), 0);
|
||||
TEST(host_has_domain_invalid("1-.invalid."), 0);
|
||||
|
||||
TEST(host_is_domain("127.0.0.1"), 0);
|
||||
TEST(host_is_domain("3.com"), 1);
|
||||
TEST(host_is_domain("127.0.0.com"), 1);
|
||||
TEST(host_is_domain("actra.0.1"), 0);
|
||||
|
||||
/* Invalid IP4 address (extra leading zeros) */
|
||||
TEST_1(!host_cmp("127.0.0.1", "127.0.0.01"));
|
||||
/* Invalid reference (extra leading zeros) */
|
||||
|
Loading…
Reference in New Issue
Block a user