diff options
| author | Anas Nashif <nashif@intel.com> | 2007-03-29 18:29:31 +0000 |
|---|---|---|
| committer | Anas Nashif <nashif@intel.com> | 2007-03-29 18:29:31 +0000 |
| commit | 3f5ed5e8b6a6e08b1d09be03bf8298bb1209cfa3 (patch) | |
| tree | ccc2a5bc8141d7a8f212b3523d0741bb17a7b666 /tests/cunit | |
| parent | 23e187b9a2225f4bd64c7088c2504432a6f477a1 (diff) | |
| download | wsmancli-3f5ed5e8b6a6e08b1d09be03bf8298bb1209cfa3.tar.gz wsmancli-3f5ed5e8b6a6e08b1d09be03bf8298bb1209cfa3.tar.xz wsmancli-3f5ed5e8b6a6e08b1d09be03bf8298bb1209cfa3.zip | |
merge branch with fixes of bg #71
Diffstat (limited to 'tests/cunit')
| -rw-r--r-- | tests/cunit/enumeration.c | 12 | ||||
| -rw-r--r-- | tests/cunit/identify.c | 6 | ||||
| -rwxr-xr-x | tests/cunit/invoke.c | 12 | ||||
| -rw-r--r-- | tests/cunit/pull.c | 12 | ||||
| -rw-r--r-- | tests/cunit/transfer_get.c | 8 | ||||
| -rwxr-xr-x | tests/cunit/transfer_put.c | 12 |
6 files changed, 31 insertions, 31 deletions
diff --git a/tests/cunit/enumeration.c b/tests/cunit/enumeration.c index 6bc38fd..8d7a6b3 100644 --- a/tests/cunit/enumeration.c +++ b/tests/cunit/enumeration.c @@ -253,7 +253,7 @@ static int ntests = sizeof (tests) / sizeof (tests[0]); extern WsManClient *cl; -actionOptions options; +actionOptions *options; @@ -265,17 +265,17 @@ static void enumeration_test() { reinit_client_connection(cl); - initialize_action_options(&options); + options = initialize_action_options(); - options.flags = tests[i].flags; + options->flags = tests[i].flags; if (tests[i].selectors) { selectors = u_strdup_printf(tests[i].selectors, host, host, host); - wsman_add_selectors_from_query_string(&options, selectors); + wsman_add_selectors_from_query_string(options, selectors); } - options.max_elements = tests[i].max_elements; + options->max_elements = tests[i].max_elements; WsXmlDocH enum_response = wsenum_enumerate(cl, (char *)tests[i].resource_uri, options); @@ -313,7 +313,7 @@ RETURN: if (enum_response) { ws_xml_destroy_doc(enum_response); } - destroy_action_options(&options); + destroy_action_options(options); i++; // decrease executed test number } diff --git a/tests/cunit/identify.c b/tests/cunit/identify.c index 39501f0..6b20131 100644 --- a/tests/cunit/identify.c +++ b/tests/cunit/identify.c @@ -88,7 +88,7 @@ static int ntests = sizeof (tests) / sizeof (tests[0]); extern WsManClient *cl; -actionOptions options; +actionOptions *options; @@ -100,7 +100,7 @@ identify_test() { char *xp = NULL; reinit_client_connection(cl); - initialize_action_options(&options); + options = initialize_action_options(); response = wsman_identify(cl, options); CU_ASSERT_TRUE(wsman_client_get_response_code(cl) == tests[i].final_status); @@ -123,7 +123,7 @@ RETURN: ws_xml_destroy_doc(response); } u_free(xp); - destroy_action_options(&options); + destroy_action_options(options); i++; } diff --git a/tests/cunit/invoke.c b/tests/cunit/invoke.c index 69dac09..da41104 100755 --- a/tests/cunit/invoke.c +++ b/tests/cunit/invoke.c @@ -181,7 +181,7 @@ static int ntests = sizeof (invoke_tests) / sizeof (invoke_tests[0]); extern WsManClient *cl; -actionOptions options; +actionOptions *options; static void invoke_test() { WsXmlDocH doc; @@ -191,7 +191,7 @@ static void invoke_test() { char *selectors = NULL; - initialize_action_options(&options); + options = initialize_action_options(); if (invoke_tests[i].selectors) { selectors = u_strdup_printf(invoke_tests[i].selectors, host, host, host); @@ -200,13 +200,13 @@ static void invoke_test() { reinit_client_connection(cl); if (selectors != NULL) { - wsman_add_selectors_from_query_string (&options, selectors); + wsman_add_selectors_from_query_string (options, selectors); } if (invoke_tests[i].properties != NULL) { - wsman_add_properties_from_query_string (&options, + wsman_add_properties_from_query_string (options, invoke_tests[i].properties); } - options.flags = invoke_tests[i].flags; + options->flags = invoke_tests[i].flags; doc = wsman_invoke(cl, (char *)invoke_tests[i].resource_uri, options, (char *)invoke_tests[i].method, NULL); @@ -274,7 +274,7 @@ RETURN: ws_xml_destroy_doc(doc); } u_free(selectors); - destroy_action_options(&options); + destroy_action_options(options); i++; // increase executed test number } diff --git a/tests/cunit/pull.c b/tests/cunit/pull.c index 0144cdd..62e6a61 100644 --- a/tests/cunit/pull.c +++ b/tests/cunit/pull.c @@ -151,7 +151,7 @@ static int ntests = sizeof (pull_tests) / sizeof (pull_tests[0]); extern WsManClient *cl; -actionOptions options; +actionOptions *options; static void pull_test() { char *enumContext = NULL; @@ -160,14 +160,14 @@ static void pull_test() { int num; reinit_client_connection(cl); - initialize_action_options(&options); + options = initialize_action_options(); - options.flags = pull_tests[i].flags; + options->flags = pull_tests[i].flags; if (pull_tests[i].selectors != NULL) - wsman_add_selectors_from_query_string(&options, pull_tests[i].selectors); + wsman_add_selectors_from_query_string(options, pull_tests[i].selectors); - options.max_elements = pull_tests[i].max_elements; + options->max_elements = pull_tests[i].max_elements; WsXmlDocH enum_response = wsenum_enumerate(cl, (char *)pull_tests[i].resource_uri, options); CU_ASSERT_TRUE(wsman_client_get_response_code(cl) == @@ -234,7 +234,7 @@ RETURN: ws_xml_destroy_doc(enum_response); } u_free(xp); - destroy_action_options(&options); + destroy_action_options(options); i++; // decrease executed test number } diff --git a/tests/cunit/transfer_get.c b/tests/cunit/transfer_get.c index d6df91f..c6538f3 100644 --- a/tests/cunit/transfer_get.c +++ b/tests/cunit/transfer_get.c @@ -156,7 +156,7 @@ static int ntests = sizeof (get_tests) / sizeof (get_tests[0]); extern WsManClient *cl; -actionOptions options; +actionOptions *options; static void transfer_get_test() { WsXmlDocH doc; @@ -172,10 +172,10 @@ static void transfer_get_test() { } reinit_client_connection(cl); - initialize_action_options(&options); + options = initialize_action_options(); if (get_tests[i].selectors != NULL) { - wsman_add_selectors_from_query_string (&options, get_tests[i].selectors); + wsman_add_selectors_from_query_string (options, get_tests[i].selectors); } @@ -229,7 +229,7 @@ RETURN: } u_free((char *)get_tests[i].selectors); get_tests[i].selectors = old_selectors; - destroy_action_options(&options); + destroy_action_options(options); i++; // increase executed test number } diff --git a/tests/cunit/transfer_put.c b/tests/cunit/transfer_put.c index 7c60d07..d90abb5 100755 --- a/tests/cunit/transfer_put.c +++ b/tests/cunit/transfer_put.c @@ -166,7 +166,7 @@ static int ntests = sizeof (put_tests) / sizeof (put_tests[0]); extern WsManClient *cl; -actionOptions options; +actionOptions *options; static void transfer_put_test() { WsXmlDocH doc; @@ -181,16 +181,16 @@ static void transfer_put_test() { u_strdup_printf(put_tests[i].selectors, host, host, host); } - initialize_action_options(&options); + options = initialize_action_options(); if (put_tests[i].selectors != NULL) { - wsman_add_selectors_from_query_string (&options, selectors); + wsman_add_selectors_from_query_string (options, selectors); } if (put_tests[i].properties != NULL) { - wsman_add_properties_from_query_string (&options, + wsman_add_properties_from_query_string (options, put_tests[i].properties); } - options.flags = put_tests[i].flags; + options->flags = put_tests[i].flags; doc = ws_transfer_get_and_put(cl, (char *)put_tests[i].resource_uri, options); @@ -259,7 +259,7 @@ RETURN: ws_xml_destroy_doc(doc); } u_free(selectors); - destroy_action_options(&options); + destroy_action_options(options); i++; // increase executed test number } |
