axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sen...@apache.org
Subject svn commit: r629104 - in /webservices/axis2/trunk/c/util/test/uri: build.sh uri_test.c
Date Tue, 19 Feb 2008 14:18:16 GMT
Author: senaka
Date: Tue Feb 19 06:17:54 2008
New Revision: 629104

URL: http://svn.apache.org/viewvc?rev=629104&view=rev
Log:
Fixing minor errors in uri test

Modified:
    webservices/axis2/trunk/c/util/test/uri/build.sh
    webservices/axis2/trunk/c/util/test/uri/uri_test.c

Modified: webservices/axis2/trunk/c/util/test/uri/build.sh
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/util/test/uri/build.sh?rev=629104&r1=629103&r2=629104&view=diff
==============================================================================
--- webservices/axis2/trunk/c/util/test/uri/build.sh (original)
+++ webservices/axis2/trunk/c/util/test/uri/build.sh Tue Feb 19 06:17:54 2008
@@ -1,3 +1,3 @@
 #!/bin/bash
 
-gcc uri_test.c ../util/create_env.c -g -Werror -I$AXIS2C_HOME/include/axis2-1.3.0 -L$AXIS2C_HOME/lib
-laxutil -laxis2_axiom -laxis2_parser -o uri_test 
+gcc uri_test.c ../util/create_env.c -g -Werror -I$AXIS2C_HOME/include/axis2-1.3.0 -L$AXIS2C_HOME/lib
-laxutil -laxis2_axiom -laxis2_parser -o uri_test   -ldl -Wl,--rpath -Wl,$AXIS2C_HOME/lib


Modified: webservices/axis2/trunk/c/util/test/uri/uri_test.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/util/test/uri/uri_test.c?rev=629104&r1=629103&r2=629104&view=diff
==============================================================================
--- webservices/axis2/trunk/c/util/test/uri/uri_test.c (original)
+++ webservices/axis2/trunk/c/util/test/uri/uri_test.c Tue Feb 19 06:17:54 2008
@@ -5,8 +5,7 @@
  *   */
 axis2_status_t test_uri(axutil_env_t *env)
 {   
-    unsigned flags;
-    axis2_char_t *uri_str = "http://user:pass@example.com:80/foo?bar#item5";
+    axis2_char_t * uri_str = "http://user:pass@example.com:80/foo?bar#item5";
     axis2_char_t * host = "home.netscape.com:443";
     axis2_char_t * uri_str_base = "http://user:pass@example.com:80/foo?bar";
     axis2_char_t * scheme_str = "http";
@@ -15,11 +14,10 @@
     axutil_uri_t * uri = NULL;
     axutil_uri_t * clone = NULL;
     axutil_uri_t * rel = NULL;
-    axis2_char_t *protocol = NULL;
-    axis2_char_t *server = NULL;
-    axis2_char_t *path = NULL;
+    axis2_char_t * protocol = NULL;
+    axis2_char_t * server = NULL;
+    axis2_char_t * path = NULL;
     axis2_port_t scheme_port;
-    axis2_status_t status = AXIS2_FAILURE;
     axis2_port_t port;
 
     hostinfo = axutil_uri_parse_hostinfo(env,host);
@@ -35,7 +33,7 @@
     scheme_port = axutil_uri_port_of_scheme(scheme_str); 
     if(scheme_port)
     {
-        printf("port of scheme is %d\n", (int)scheme_port);
+        printf("port of scheme is %u\n", scheme_port);
     }
     else
     {
@@ -77,7 +75,7 @@
     rel = axutil_uri_resolve_relative(env,base,clone);
     if(rel)
     {
-        printf("The resolve relative uri is %s\n",axutil_uri_to_string(rel,env,flags));
+        printf("The resolved relative uri is %s\n",axutil_uri_to_string(rel,env,0));
     }
     else
     {
@@ -114,7 +112,7 @@
    
     printf("The protocol is %s\n",protocol);
     printf("The server is %s \n",server);
-    printf("The port is %d \n",(unsigned short)port);
+    printf("The port is %u \n",port);
     printf("The path is %s\n",path); 
     axutil_uri_free(uri,env);
     return AXIS2_SUCCESS;
@@ -130,7 +128,7 @@
     
     if(status == AXIS2_FAILURE)
     {
-        printf(" Test is failed");
+        printf("The Test failed");
     }
     axutil_env_free(env);
     



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org


Mime
View raw message