[libgdata/libgdata-0-7] tests: Fix comparison of attributes' namespaces in XML tree comparisons
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgdata/libgdata-0-7] tests: Fix comparison of attributes' namespaces in XML tree comparisons
- Date: Sat, 11 Dec 2010 21:52:29 +0000 (UTC)
commit a7f2c6b32627c7f3f730773ff426bb9f50a8a77f
Author: Philip Withnall <philip tecnocode co uk>
Date: Sat Dec 11 20:12:03 2010 +0000
tests: Fix comparison of attributes' namespaces in XML tree comparisons
gdata/tests/common.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gdata/tests/common.c b/gdata/tests/common.c
index 3659680..77f0e30 100644
--- a/gdata/tests/common.c
+++ b/gdata/tests/common.c
@@ -400,7 +400,7 @@ compare_xml_nodes (xmlNode *node1, xmlNode *node2)
/* Compare various simple properties */
if (attr1->type != attr2->type ||
xmlStrcmp (attr1->name, attr2->name) != 0 ||
- attr1->ns != attr2->ns ||
+ compare_xml_namespaces (attr1->ns, attr2->ns) == FALSE ||
attr1->atype != attr2->atype) {
return FALSE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]