diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/plist_cmp.c | 4 | ||||
| -rw-r--r-- | test/plist_test.c | 12 |
2 files changed, 5 insertions, 11 deletions
diff --git a/test/plist_cmp.c b/test/plist_cmp.c index a07452b..c854446 100644 --- a/test/plist_cmp.c +++ b/test/plist_cmp.c | |||
| @@ -139,12 +139,10 @@ int main(int argc, char *argv[]) | |||
| 139 | printf("PList parsing failed\n"); | 139 | printf("PList parsing failed\n"); |
| 140 | return 3; | 140 | return 3; |
| 141 | } | 141 | } |
| 142 | else | ||
| 143 | printf("PList parsing succeeded\n"); | ||
| 144 | 142 | ||
| 143 | printf("PList parsing succeeded\n"); | ||
| 145 | res = compare_plist(root_node1, root_node2); | 144 | res = compare_plist(root_node1, root_node2); |
| 146 | 145 | ||
| 147 | |||
| 148 | plist_free(root_node1); | 146 | plist_free(root_node1); |
| 149 | plist_free(root_node2); | 147 | plist_free(root_node2); |
| 150 | 148 | ||
diff --git a/test/plist_test.c b/test/plist_test.c index b498e1d..6e3947a 100644 --- a/test/plist_test.c +++ b/test/plist_test.c | |||
| @@ -77,36 +77,32 @@ int main(int argc, char *argv[]) | |||
| 77 | printf("PList XML parsing failed\n"); | 77 | printf("PList XML parsing failed\n"); |
| 78 | return 3; | 78 | return 3; |
| 79 | } | 79 | } |
| 80 | else | ||
| 81 | printf("PList XML parsing succeeded\n"); | ||
| 82 | 80 | ||
| 81 | printf("PList XML parsing succeeded\n"); | ||
| 83 | plist_to_bin(root_node1, &plist_bin, &size_out); | 82 | plist_to_bin(root_node1, &plist_bin, &size_out); |
| 84 | if (!plist_bin) | 83 | if (!plist_bin) |
| 85 | { | 84 | { |
| 86 | printf("PList BIN writing failed\n"); | 85 | printf("PList BIN writing failed\n"); |
| 87 | return 4; | 86 | return 4; |
| 88 | } | 87 | } |
| 89 | else | ||
| 90 | printf("PList BIN writing succeeded\n"); | ||
| 91 | 88 | ||
| 89 | printf("PList BIN writing succeeded\n"); | ||
| 92 | plist_from_bin(plist_bin, size_out, &root_node2); | 90 | plist_from_bin(plist_bin, size_out, &root_node2); |
| 93 | if (!root_node2) | 91 | if (!root_node2) |
| 94 | { | 92 | { |
| 95 | printf("PList BIN parsing failed\n"); | 93 | printf("PList BIN parsing failed\n"); |
| 96 | return 5; | 94 | return 5; |
| 97 | } | 95 | } |
| 98 | else | ||
| 99 | printf("PList BIN parsing succeeded\n"); | ||
| 100 | 96 | ||
| 97 | printf("PList BIN parsing succeeded\n"); | ||
| 101 | plist_to_xml(root_node2, &plist_xml2, &size_out2); | 98 | plist_to_xml(root_node2, &plist_xml2, &size_out2); |
| 102 | if (!plist_xml2) | 99 | if (!plist_xml2) |
| 103 | { | 100 | { |
| 104 | printf("PList XML writing failed\n"); | 101 | printf("PList XML writing failed\n"); |
| 105 | return 8; | 102 | return 8; |
| 106 | } | 103 | } |
| 107 | else | ||
| 108 | printf("PList XML writing succeeded\n"); | ||
| 109 | 104 | ||
| 105 | printf("PList XML writing succeeded\n"); | ||
| 110 | if (plist_xml2) | 106 | if (plist_xml2) |
| 111 | { | 107 | { |
| 112 | FILE *oplist = NULL; | 108 | FILE *oplist = NULL; |
