apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rpl...@apache.org
Subject svn commit: r602478 - /apr/apr-util/trunk/test/testuri.c
Date Sat, 08 Dec 2007 14:54:28 GMT
Author: rpluem
Date: Sat Dec  8 06:54:28 2007
New Revision: 602478

URL: http://svn.apache.org/viewvc?rev=602478&view=rev
Log:
* Commit test case missed in r607472.

Modified:
    apr/apr-util/trunk/test/testuri.c

Modified: apr/apr-util/trunk/test/testuri.c
URL: http://svn.apache.org/viewvc/apr/apr-util/trunk/test/testuri.c?rev=602478&r1=602477&r2=602478&view=diff
==============================================================================
--- apr/apr-util/trunk/test/testuri.c (original)
+++ apr/apr-util/trunk/test/testuri.c Sat Dec  8 06:54:28 2007
@@ -218,6 +218,19 @@
 
             s = apr_uri_unparse(p, &info, APR_URI_UNP_REVEALPASSWORD);
             ABTS_STR_EQUAL(tc, t->uri, s);
+
+            s = apr_uri_unparse(p, &info, APR_URI_UNP_OMITSITEPART);
+            rv = apr_uri_parse(p, s, &info);
+            ABTS_STR_EQUAL(tc, info.scheme, NULL);
+            ABTS_STR_EQUAL(tc, info.hostinfo, NULL);
+            ABTS_STR_EQUAL(tc, info.user, NULL);
+            ABTS_STR_EQUAL(tc, info.password, NULL);
+            ABTS_STR_EQUAL(tc, info.hostname, NULL);
+            ABTS_STR_EQUAL(tc, info.port_str, NULL);
+            ABTS_STR_EQUAL(tc, info.path, t->path);
+            ABTS_STR_EQUAL(tc, info.query, t->query);
+            ABTS_STR_EQUAL(tc, info.user, NULL);
+            ABTS_INT_EQUAL(tc, info.port, 0);
         }
     }
 }



Mime
View raw message