You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by sa...@apache.org on 2006/01/10 09:34:38 UTC
svn commit: r367521 -
/webservices/axis2/trunk/c/test/core/description/test_description.c
Author: samisa
Date: Tue Jan 10 00:34:33 2006
New Revision: 367521
URL: http://svn.apache.org/viewcvs?rev=367521&view=rev
Log:
Added more error handling. Need to fix the segfault.
Modified:
webservices/axis2/trunk/c/test/core/description/test_description.c
Modified: webservices/axis2/trunk/c/test/core/description/test_description.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/test/core/description/test_description.c?rev=367521&r1=367520&r2=367521&view=diff
==============================================================================
--- webservices/axis2/trunk/c/test/core/description/test_description.c (original)
+++ webservices/axis2/trunk/c/test/core/description/test_description.c Tue Jan 10 00:34:33 2006
@@ -8,8 +8,7 @@
int test_op_engage_module()
{
- int size = 0;
- 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_op *op = axis2_op_create(&env);
@@ -17,18 +16,17 @@
moduleref = axis2_module_desc_create(&env);
- status = axis2_op_engage_module(op, &env, moduleref);
-
- /*printf("%d\n", AXIS2_ERROR_GET_STATUS_CODE((env)->error));*/
+ status = AXIS2_OP_ENGAGE_MODULE(op, &env, moduleref);
if(status != AXIS2_SUCCESS )
{
printf("ERROR %d\n", status);
- return -1;
+ /*return -1;*/
}
- axis2_op_free (op, &env);
+ AXIS2_OP_FREE(op, &env);
axis2_env_free(env);
+ return 0;
}
int main()