diff options
author | Vadim Revyakin <vadimr@intel.com> | 2007-01-10 13:34:41 +0000 |
---|---|---|
committer | Vadim Revyakin <vadimr@intel.com> | 2007-01-10 13:34:41 +0000 |
commit | d77a968728f2841a47d05ed8050262c65824f04d (patch) | |
tree | 2e8baf65f6f5f328a160c4e1bd8dc08a7197af24 | |
parent | b6c9d1af5c1c633875b0682ae6607a3a3c267d52 (diff) | |
download | wsmancli-d77a968728f2841a47d05ed8050262c65824f04d.tar.gz wsmancli-d77a968728f2841a47d05ed8050262c65824f04d.tar.xz wsmancli-d77a968728f2841a47d05ed8050262c65824f04d.zip |
public API using. Interop file check
-rw-r--r-- | tests/interop/interop.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/interop/interop.c b/tests/interop/interop.c index 145cc22..2cf6205 100644 --- a/tests/interop/interop.c +++ b/tests/interop/interop.c @@ -250,6 +250,10 @@ int main(int argc, char** argv) uri->pwd); initialize_action_options(&options); + if (file == NULL) { + fprintf(stderr, "Interop file required\n"); + return 1; + } doc = wsman_client_read_file(cl, file, "UTF-8", 0); //xml_parser_doc_dump(stdout, doc); @@ -258,7 +262,7 @@ int main(int argc, char** argv) WsXmlNodeH node; if (doc != NULL) - node = xml_parser_get_root(doc); + node = ws_xml_get_doc_root(doc); WsXmlNodeH scenario; int index = 0; |