[libgdata/libgdata-0-6] tests: Fix comparison of attributes' namespaces in XML tree comparisons



commit 972d20d1f2b0b4487f549dcfebaa8e4899f5ce52
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 90f57cf..6dc5414 100644
--- a/gdata/tests/common.c
+++ b/gdata/tests/common.c
@@ -118,7 +118,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]