Lines Matching full:files
439 GFile *files[6] = {NULL};
444 files[0] = g_file_new_for_uri (path);
445 files[1] = g_file_new_for_uri (path);
449 files[0] = g_file_new_for_path (path);
450 files[1] = g_file_new_for_path (path);
453 g_assert (files[0] != NULL);
454 g_assert (files[1] != NULL);
456 files[2] = g_file_get_child (files[1], dir_holder);
457 g_assert (files[2] != NULL);
459 files[3] = g_file_get_parent (files[2]);
460 g_assert (files[3] != NULL);
461 g_assert (g_file_equal (files[3], files[0]) == TRUE);
463 files[4] = g_file_get_parent (files[3]);
466 g_assert (files[4] == NULL);
469 g_assert (files[4] != NULL);
471 files[5] = g_file_get_child (files[4], dir_holder);
472 g_assert (files[5] != NULL);
473 g_assert (g_file_equal (files[5], files[0]) == TRUE);
476 for (i = 0; i < G_N_ELEMENTS (files); i++)
478 if (files[i])
479 g_object_unref (files[i]);
516 /* Testing whether the g_file_new_for_path() correctly canonicalizes strings and two files equals (g_file_equal()) */
519 /* Testing whether the g_file_new_for_uri() correctly canonicalizes strings and two files equals (g_file_equal()) */