summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/CMakeLists.txt1
-rw-r--r--test/plist_cmp.c17
2 files changed, 18 insertions, 0 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index 40dc640..415d076 100644
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -1,5 +1,6 @@
1 1
2#build the test executable 2#build the test executable
3INCLUDE_DIRECTORIES( ${GLIB2_INCLUDE_DIR} )
3 4
4SET(plist_test_SRC 5SET(plist_test_SRC
5 plist_test.c) 6 plist_test.c)
diff --git a/test/plist_cmp.c b/test/plist_cmp.c
index 709e8d0..dcf961f 100644
--- a/test/plist_cmp.c
+++ b/test/plist_cmp.c
@@ -27,10 +27,27 @@
27#include <string.h> 27#include <string.h>
28#include <sys/stat.h> 28#include <sys/stat.h>
29 29
30#include <glib.h>
31
30#ifdef _MSC_VER 32#ifdef _MSC_VER
31#pragma warning(disable:4996) 33#pragma warning(disable:4996)
32#endif 34#endif
33 35
36static plist_t plist_get_first_child(plist_t node)
37{
38 return (plist_t) g_node_first_child((GNode *) node);
39}
40
41static plist_t plist_get_next_sibling(plist_t node)
42{
43 return (plist_t) g_node_next_sibling((GNode *) node);
44}
45
46static plist_t plist_get_prev_sibling(plist_t node)
47{
48 return (plist_t) g_node_prev_sibling((GNode *) node);
49}
50
34char compare_plist(plist_t node_l, plist_t node_r) 51char compare_plist(plist_t node_l, plist_t node_r)
35{ 52{
36 plist_t cur_l = NULL; 53 plist_t cur_l = NULL;