Lines Matching refs:local_error
841 GError *local_error = NULL; in test_replace_symlink() local
847 tmpdir_path = g_dir_make_tmp ("g_file_replace_symlink_XXXXXX", &local_error); in test_replace_symlink()
848 g_assert_no_error (local_error); in test_replace_symlink()
857 g_file_make_symbolic_link (source_file, "target", NULL, &local_error); in test_replace_symlink()
858 g_assert_no_error (local_error); in test_replace_symlink()
867 G_FILE_CREATE_REPLACE_DESTINATION, NULL, &local_error); in test_replace_symlink()
868 g_assert_no_error (local_error); in test_replace_symlink()
871 &n_written, NULL, &local_error); in test_replace_symlink()
872 g_assert_no_error (local_error); in test_replace_symlink()
875 g_output_stream_close (G_OUTPUT_STREAM (stream), NULL, &local_error); in test_replace_symlink()
876 g_assert_no_error (local_error); in test_replace_symlink()
885 G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS, NULL, &local_error); in test_replace_symlink()
886 g_assert_no_error (local_error); in test_replace_symlink()
888 info = g_file_enumerator_next_file (enumerator, NULL, &local_error); in test_replace_symlink()
889 g_assert_no_error (local_error); in test_replace_symlink()
897 info = g_file_enumerator_next_file (enumerator, NULL, &local_error); in test_replace_symlink()
898 g_assert_no_error (local_error); in test_replace_symlink()
901 g_file_enumerator_close (enumerator, NULL, &local_error); in test_replace_symlink()
902 g_assert_no_error (local_error); in test_replace_symlink()
914 &local_error); in test_replace_symlink()
915 g_assert_no_error (local_error); in test_replace_symlink()
921 g_file_delete (source_file, NULL, &local_error); in test_replace_symlink()
922 g_assert_no_error (local_error); in test_replace_symlink()
924 g_file_delete (tmpdir, NULL, &local_error); in test_replace_symlink()
925 g_assert_no_error (local_error); in test_replace_symlink()
963 GError *local_error = NULL; in create_test_file() local
981 g_file_set_contents (g_file_peek_path (test_file), contents, -1, &local_error); in create_test_file()
982 g_assert_no_error (local_error); in create_test_file()
986 NULL, &local_error); in create_test_file()
987 g_assert_no_error (local_error); in create_test_file()
995 g_file_make_directory (test_file, NULL, &local_error); in create_test_file()
996 g_assert_no_error (local_error); in create_test_file()
1002 g_file_set_contents (g_file_peek_path (target_file), "target file", -1, &local_error); in create_test_file()
1003 g_assert_no_error (local_error); in create_test_file()
1010 g_file_make_symbolic_link (test_file, target_basename, NULL, &local_error); in create_test_file()
1011 g_assert_no_error (local_error); in create_test_file()
1017 NULL, &local_error); in create_test_file()
1018 g_assert_no_error (local_error); in create_test_file()
1057 GError *local_error = NULL; in check_test_file() local
1078 G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS, NULL, &local_error); in check_test_file()
1079 g_assert_no_error (local_error); in check_test_file()
1091 g_file_get_contents (g_file_peek_path (test_file), &contents, &length, &local_error); in check_test_file()
1092 g_assert_no_error (local_error); in check_test_file()
1114 G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS, NULL, &local_error); in check_test_file()
1115 g_assert_no_error (local_error); in check_test_file()
1133 G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS, NULL, &local_error); in check_test_file()
1134 g_assert_no_error (local_error); in check_test_file()
1151 G_FILE_QUERY_INFO_NONE, NULL, &local_error); in check_test_file()
1152 g_assert_no_error (local_error); in check_test_file()
1699 GError *local_error = NULL; in test_replace() local
1702 tmpdir_path = g_dir_make_tmp ("g_file_replace_XXXXXX", &local_error); in test_replace()
1703 g_assert_no_error (local_error); in test_replace()
1722 &local_error); in test_replace()
1729 &local_error); in test_replace()
1733 g_assert_no_error (local_error); in test_replace()
1747 &n_written, NULL, &local_error); in test_replace()
1751 g_assert_no_error (local_error); in test_replace()
1755 … g_io_stream_close (G_IO_STREAM (io_stream), NULL, (local_error == NULL) ? &local_error : NULL); in test_replace()
1758 g_assert_no_error (local_error); in test_replace()
1765 &n_written, NULL, &local_error); in test_replace()
1769 g_assert_no_error (local_error); in test_replace()
1773 …tput_stream_close (G_OUTPUT_STREAM (output_stream), NULL, (local_error == NULL) ? &local_error : N… in test_replace()
1776 g_assert_no_error (local_error); in test_replace()
1780 g_assert_no_error (local_error); in test_replace()
1782 g_assert_error (local_error, tests[i].expected_error_domain, tests[i].expected_error_code); in test_replace()
1784 g_clear_error (&local_error); in test_replace()
1791 … G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS, NULL, &local_error); in test_replace()
1792 g_assert_no_error (local_error); in test_replace()
1797 g_file_enumerator_iterate (enumerator, &info, NULL, NULL, &local_error); in test_replace()
1798 g_assert_no_error (local_error); in test_replace()
1829 g_file_delete (tmpdir, NULL, &local_error); in test_replace()
1830 g_assert_no_error (local_error); in test_replace()
1846 GError *local_error = NULL; in on_file_deleted() local
1849 (void) g_file_delete_finish ((GFile*)object, result, &local_error); in on_file_deleted()
1850 g_assert_no_error (local_error); in on_file_deleted()
1860 GError *local_error = NULL; in test_async_delete() local
1861 GError **error = &local_error; in test_async_delete()
1866 g_assert_no_error (local_error); in test_async_delete()
1925 GError *local_error = NULL; in test_copy_preserve_mode() local
1932 &iostream, &local_error); in test_copy_preserve_mode()
1933 g_assert_no_error (local_error); in test_copy_preserve_mode()
1934 g_io_stream_close ((GIOStream*)iostream, NULL, &local_error); in test_copy_preserve_mode()
1935 g_assert_no_error (local_error); in test_copy_preserve_mode()
1940 NULL, &local_error); in test_copy_preserve_mode()
1941 g_assert_no_error (local_error); in test_copy_preserve_mode()
1944 &iostream, &local_error); in test_copy_preserve_mode()
1945 g_assert_no_error (local_error); in test_copy_preserve_mode()
1946 g_io_stream_close ((GIOStream*)iostream, NULL, &local_error); in test_copy_preserve_mode()
1947 g_assert_no_error (local_error); in test_copy_preserve_mode()
1952 g_file_delete (dest_tmpfile, NULL, &local_error); in test_copy_preserve_mode()
1953 g_assert_no_error (local_error); in test_copy_preserve_mode()
1957 NULL, NULL, NULL, &local_error); in test_copy_preserve_mode()
1958 g_assert_no_error (local_error); in test_copy_preserve_mode()
1961 NULL, &local_error); in test_copy_preserve_mode()
1962 g_assert_no_error (local_error); in test_copy_preserve_mode()