[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Powerguru-commit] [SCM] powerguru branch, master, updated. 7c3a1fedb7a5
From: |
Rob Savoye |
Subject: |
[Powerguru-commit] [SCM] powerguru branch, master, updated. 7c3a1fedb7a514d9aae374ead2f923bcc3fe59f7 |
Date: |
Sun, 9 Dec 2018 15:01:42 -0500 (EST) |
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "powerguru".
The branch, master has been updated
via 7c3a1fedb7a514d9aae374ead2f923bcc3fe59f7 (commit)
from ec6fbcc39e4117df4ad6607d6640dd7fd3fb0e23 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit/powerguru.git/commit/?id=7c3a1fedb7a514d9aae374ead2f923bcc3fe59f7
commit 7c3a1fedb7a514d9aae374ead2f923bcc3fe59f7
Author: Rob Savoye <address@hidden>
Date: Sun Dec 9 13:01:40 2018 -0700
parse XML before testing it.
diff --git a/testsuite/libtests/cmd-test.cc b/testsuite/libtests/cmd-test.cc
index f971cae..352173a 100644
--- a/testsuite/libtests/cmd-test.cc
+++ b/testsuite/libtests/cmd-test.cc
@@ -108,11 +108,31 @@ public:
runtest.fail("LIST command has correct child");
}
- //execCommand(xml, str);
-
+ //execCommand(xml, str);
std::string testpoll = "<command><poll>bar</poll></command>";
+ if (!xml.parseMem(testpoll)) {
+ runtest.untested("XML::parseMem(poll command) failed!");
+ }
+ node = xml[0];
+ if (node->nameGet() == "poll") {
+ runtest.pass("parse POLL command");
+ } else {
+ runtest.fail("parse POLL command");
+ }
+ str.erase();
+ if (xml[0] != 0) {
+ runtest.pass("POLL command has children");
+ } else {
+ runtest.fail("POLL command has children");
+ }
+
+ if (xml[0]->nameGet() == "poll" && xml[0]->valueGet() == "bar") {
+ runtest.pass("POLL command has correct child");
+ } else {
+ runtest.fail("POLL command has correct child");
+ }
};
~Test() {};
-----------------------------------------------------------------------
Summary of changes:
testsuite/libtests/cmd-test.cc | 24 ++++++++++++++++++++++--
1 file changed, 22 insertions(+), 2 deletions(-)
hooks/post-receive
--
powerguru
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Powerguru-commit] [SCM] powerguru branch, master, updated. 7c3a1fedb7a514d9aae374ead2f923bcc3fe59f7,
Rob Savoye <=