projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4616b19
)
Fix segfault when tests fail.
author
Carl Hetherington
<cth@carlh.net>
Fri, 27 Jun 2014 10:16:25 +0000
(11:16 +0100)
committer
Carl Hetherington
<cth@carlh.net>
Fri, 27 Jun 2014 10:16:25 +0000
(11:16 +0100)
test/test.cc
patch
|
blob
|
history
diff --git
a/test/test.cc
b/test/test.cc
index c233a661ddf4666cb65bd89c68a413d44950fcdb..983ad852b95cfb6d4524c68ce986e496fe4aaacc 100644
(file)
--- a/
test/test.cc
+++ b/
test/test.cc
@@
-182,7
+182,7
@@
check_xml (xmlpp::Element* ref, xmlpp::Element* test, list<string> ignore)
xmlpp::Element::NodeList::iterator k = ref_children.begin ();
xmlpp::Element::NodeList::iterator l = test_children.begin ();
- while (k != ref_children.end ()) {
+ while (k != ref_children.end ()
&& l != test_children.end ()
) {
/* XXX: should be doing xmlpp::EntityReference, xmlpp::XIncludeEnd, xmlpp::XIncludeStart */
@@
-211,6
+211,9
@@
check_xml (xmlpp::Element* ref, xmlpp::Element* test, list<string> ignore)
++k;
++l;
}
+
+ BOOST_CHECK (k == ref_children.end ());
+ BOOST_CHECK (l == test_children.end ());
}
void