From bf8f5652451bb96c265e36475094e06149e0fe73 Mon Sep 17 00:00:00 2001 From: bojan Date: Mon, 11 Aug 2008 00:16:15 +0000 Subject: Backport r684616 from the trunk. Test for telnet service instead of http (Solaris 8 doesn't have http). git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.3.x@684617 13f79535-47bb-0310-9956-ffa450edef68 --- test/testsock.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/testsock.c b/test/testsock.c index 84121449b..51a82e41a 100644 --- a/test/testsock.c +++ b/test/testsock.c @@ -88,9 +88,9 @@ static void test_serv_by_name(abts_case *tc, void *data) rv = apr_getservbyname(sa, "complete_and_utter_rubbish"); APR_ASSERT_SUCCESS(tc, "Problem getting non-existent service", !rv); - rv = apr_getservbyname(sa, "http"); - APR_ASSERT_SUCCESS(tc, "Problem getting http service", rv); - ABTS_INT_EQUAL(tc, 80, sa->port); + rv = apr_getservbyname(sa, "telnet"); + APR_ASSERT_SUCCESS(tc, "Problem getting telnet service", rv); + ABTS_INT_EQUAL(tc, 23, sa->port); } static apr_socket_t *setup_socket(abts_case *tc) -- cgit v1.2.1