diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/plist_cmp.c | 7 | ||||
| -rw-r--r-- | test/plist_test.c | 7 |
2 files changed, 4 insertions, 10 deletions
diff --git a/test/plist_cmp.c b/test/plist_cmp.c index dcf961f..af54c4c 100644 --- a/test/plist_cmp.c +++ b/test/plist_cmp.c | |||
| @@ -43,12 +43,7 @@ static plist_t plist_get_next_sibling(plist_t node) | |||
| 43 | return (plist_t) g_node_next_sibling((GNode *) node); | 43 | return (plist_t) g_node_next_sibling((GNode *) node); |
| 44 | } | 44 | } |
| 45 | 45 | ||
| 46 | static plist_t plist_get_prev_sibling(plist_t node) | 46 | static char compare_plist(plist_t node_l, plist_t node_r) |
| 47 | { | ||
| 48 | return (plist_t) g_node_prev_sibling((GNode *) node); | ||
| 49 | } | ||
| 50 | |||
| 51 | char compare_plist(plist_t node_l, plist_t node_r) | ||
| 52 | { | 47 | { |
| 53 | plist_t cur_l = NULL; | 48 | plist_t cur_l = NULL; |
| 54 | plist_t cur_r = NULL; | 49 | plist_t cur_r = NULL; |
diff --git a/test/plist_test.c b/test/plist_test.c index a0344e9..17be11a 100644 --- a/test/plist_test.c +++ b/test/plist_test.c | |||
| @@ -35,15 +35,14 @@ | |||
| 35 | int main(int argc, char *argv[]) | 35 | int main(int argc, char *argv[]) |
| 36 | { | 36 | { |
| 37 | FILE *iplist = NULL; | 37 | FILE *iplist = NULL; |
| 38 | FILE *oplist = NULL; | ||
| 39 | plist_t root_node1 = NULL; | 38 | plist_t root_node1 = NULL; |
| 40 | plist_t root_node2 = NULL; | 39 | plist_t root_node2 = NULL; |
| 41 | char *plist_xml = NULL; | 40 | char *plist_xml = NULL; |
| 42 | char *plist_xml2 = NULL; | 41 | char *plist_xml2 = NULL; |
| 43 | char *plist_bin = NULL; | 42 | char *plist_bin = NULL; |
| 44 | int size_in = 0; | 43 | int size_in = 0; |
| 45 | int size_out = 0; | 44 | uint32_t size_out = 0; |
| 46 | int size_out2 = 0; | 45 | uint32_t size_out2 = 0; |
| 47 | char *file_in = NULL; | 46 | char *file_in = NULL; |
| 48 | struct stat *filestats = (struct stat *) malloc(sizeof(struct stat)); | 47 | struct stat *filestats = (struct stat *) malloc(sizeof(struct stat)); |
| 49 | if (argc!= 2) | 48 | if (argc!= 2) |
| @@ -123,7 +122,7 @@ int main(int argc, char *argv[]) | |||
| 123 | free(plist_xml2); | 122 | free(plist_xml2); |
| 124 | free(filestats); | 123 | free(filestats); |
| 125 | 124 | ||
| 126 | if (size_in != size_out2) | 125 | if ((uint32_t)size_in != size_out2) |
| 127 | { | 126 | { |
| 128 | printf("Size of input and output is different\n"); | 127 | printf("Size of input and output is different\n"); |
| 129 | printf("Input size : %i\n", size_in); | 128 | printf("Input size : %i\n", size_in); |
