axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sam...@apache.org
Subject svn commit: r367496 - /webservices/axis2/trunk/c/test/core/engine/test_engine.c
Date Tue, 10 Jan 2006 05:59:00 GMT
Author: samisa
Date: Mon Jan  9 21:58:56 2006
New Revision: 367496

URL: http://svn.apache.org/viewcvs?rev=367496&view=rev
Log:
Fixed some errors

Modified:
    webservices/axis2/trunk/c/test/core/engine/test_engine.c

Modified: webservices/axis2/trunk/c/test/core/engine/test_engine.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/test/core/engine/test_engine.c?rev=367496&r1=367495&r2=367496&view=diff
==============================================================================
--- webservices/axis2/trunk/c/test/core/engine/test_engine.c (original)
+++ webservices/axis2/trunk/c/test/core/engine/test_engine.c Mon Jan  9 21:58:56 2006
@@ -5,7 +5,7 @@
 
 int	axis2_test_engine_send()
 {
-	axis2_status_t *status = NULL;
+	axis2_status_t status = AXIS2_FAILURE;
 	axis2_allocator_t *allocator = axis2_allocator_init (NULL);
 	axis2_env_t *env = axis2_env_create (allocator);
 	struct axis2_msg *msg = NULL;
@@ -22,17 +22,20 @@
 
 	axis2_engine_t *engine = axis2_engine_create(&env, conf_ctx);
 
-    axis2_engine_send(engine, &env, msg_ctx);
+    status = AXIS2_ENGINE_SEND(engine, &env, msg_ctx);
 	if(status != AXIS2_SUCCESS )
 	{
-	    printf("ERROR\n");
+	    printf("ERROR %d\n", status);
 	    return -1;
 	}
+    else
+        printf("SUCCESS\n");
+    return 0;
 }
 
 int	axis2_test_engine_receive()
 {
-	axis2_status_t *status = NULL;
+	axis2_status_t status = AXIS2_FAILURE;
 	axis2_allocator_t *allocator = axis2_allocator_init (NULL);
 	axis2_env_t *env = axis2_env_create (allocator);
 	struct axis2_msg *msg = NULL;
@@ -49,12 +52,15 @@
 
 	axis2_engine_t *engine = axis2_engine_create(&env, conf_ctx);
 
-    axis2_engine_receive(engine, &env, msg_ctx);
+    status = AXIS2_ENGINE_RECEIVE(engine, &env, msg_ctx);
 	if(status != AXIS2_SUCCESS )
 	{
-	    printf("ERROR\n");
+	    printf("ERROR %d\n", status);
 	    return -1;
 	}
+    else
+        printf("SUCCESS\n");
+    return 0;
 }
 int main()
 {



Mime
View raw message