https://bugzilla.gnome.org/show_bug.cgi?id=711751
data = g_file_read_link (link3, &error);
g_assert (data == NULL && "could read link3");
g_assert_error (error, G_FILE_ERROR, G_FILE_ERROR_NOENT);
data = g_file_read_link (link3, &error);
g_assert (data == NULL && "could read link3");
g_assert_error (error, G_FILE_ERROR, G_FILE_ERROR_NOENT);
error = NULL;
data = g_file_read_link (filename, &error);
g_assert (data == NULL && "could read regular file as link");
g_assert_error (error, G_FILE_ERROR, G_FILE_ERROR_INVAL);
error = NULL;
data = g_file_read_link (filename, &error);
g_assert (data == NULL && "could read regular file as link");
g_assert_error (error, G_FILE_ERROR, G_FILE_ERROR_INVAL);
+ g_error_free (error);
+
remove (filename);
remove (link1);
remove (link2);
remove (filename);
remove (link1);
remove (link2);