Lines Matching full:check
44 check(long code) in check() function
84 check(profile_init_path("test2.ini", &p)); in test_iterate()
86 /* Iterate and check for the expected values. */ in test_iterate()
87 check(profile_iterator_create(p, names, 0, &iter)); in test_iterate()
89 check(profile_iterator(&iter, &name, &value)); in test_iterate()
103 check(profile_iterator_create(p, names, 0, &iter)); in test_iterate()
105 check(profile_iterator(&iter, NULL, &value)); in test_iterate()
108 check(profile_update_relation(p, names, value, NULL)); in test_iterate()
117 /* Check that no values for the section are found in the resulting file. */ in test_iterate()
118 check(profile_init_path("test3.ini", &p)); in test_iterate()
119 check(profile_iterator_create(p, names, 0, &iter)); in test_iterate()
120 check(profile_iterator(&iter, &name, &value)); in test_iterate()
140 check(profile_init_path("test3.ini", &a)); in test_shared()
151 check(profile_init_path("test3.ini", &b)); in test_shared()
160 check(profile_init_path("test3.ini", &a)); in test_shared()
173 check(profile_init_path("test2.ini", &p)); in test_clear()
174 check(profile_get_values(p, names, &values)); in test_clear()
175 check(profile_clear_relation(p, names)); in test_clear()
177 check(profile_add_relation(p, names, values[0])); in test_clear()
179 check(profile_get_values(p, names, &values)); in test_clear()
202 check(profile_init_path("testinc.ini", &p)); in test_include()
203 check(profile_get_values(p, names, &values)); in test_include()
210 * directory, two with invalid names. Check that we get two values for one in test_include()
220 check(profile_init_path("testinc.ini", &p)); in test_include()
221 check(profile_get_values(p, names, &values)); in test_include()
229 check(profile_init_path("test_include_dir", &p)); in test_include()
230 check(profile_get_values(p, names, &values)); in test_include()
252 check(profile_init_path("testinc.ini", &p)); in test_independence()
253 check(profile_get_values(p, names1, &values)); in test_independence()
256 check(profile_get_values(p, names2, &values)); in test_independence()
259 check(profile_get_values(p, names3, &values)); in test_independence()
275 check(profile_init_path("test2.ini", &p)); in test_delete_section()
278 check(profile_rename_section(p, sect, NULL)); in test_delete_section()
279 check(profile_add_relation(p, sect, NULL)); in test_delete_section()
280 check(profile_add_relation(p, newrel, "6")); in test_delete_section()
282 /* Check that we can read the new relation but not the old one. */ in test_delete_section()
283 check(profile_get_values(p, newrel, &values)); in test_delete_section()
298 check(profile_init_path("test2.ini", &p)); in test_delete_clear_relation()
299 check(profile_add_relation(p, names, "1")); in test_delete_clear_relation()
300 check(profile_add_relation(p, names, "2")); in test_delete_clear_relation()
301 check(profile_update_relation(p, names, "2", NULL)); in test_delete_clear_relation()
302 check(profile_clear_relation(p, names)); in test_delete_clear_relation()
314 check(profile_init_path("test2.ini", &p)); in test_delete_ordering()
315 check(profile_add_relation(p, names, "1")); in test_delete_ordering()
316 check(profile_add_relation(p, names, "2")); in test_delete_ordering()
317 check(profile_add_relation(p, names, "3")); in test_delete_ordering()
318 check(profile_update_relation(p, names, "2", NULL)); in test_delete_ordering()
319 check(profile_add_relation(p, names, "4")); in test_delete_ordering()
320 check(profile_get_values(p, names, &values)); in test_delete_ordering()
338 check(profile_init_path("test2.ini", &p)); in test_flush_to_file()
340 check(profile_flush_to_file(p, "test3.ini")); in test_flush_to_file()
343 /* Check for a dangling reference in g_shared_trees by creating another in test_flush_to_file()
359 check(profile_init_path("test2.ini", &p)); in test_merge_subsections()
361 check(profile_get_values(p, n1, &values)); in test_merge_subsections()
369 check(profile_get_values(p, n2, &values)); in test_merge_subsections()
386 check(profile_init(NULL, &p)); in test_empty()
387 check(profile_add_relation(p, n1, NULL)); in test_empty()
388 check(profile_add_relation(p, n2, "value")); in test_empty()
389 check(profile_flush(p)); /* should succeed but do nothing */ in test_empty()
390 check(profile_get_values(p, n2, &values)); in test_empty()
394 check(profile_copy(p, &p2)); in test_empty()
395 check(profile_get_values(p2, n2, &values)); in test_empty()
404 check(profile_get_values(p, n2, &values)); in test_empty()