[gtksourceview/wip/loader-saver] test-file-saver: print error when operation not supported
- From: SĂŠbastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview/wip/loader-saver] test-file-saver: print error when operation not supported
- Date: Mon, 7 Jul 2014 19:58:53 +0000 (UTC)
commit ac4c6d9d676de8b6437c45b899dc651b4d50d76f
Author: SĂŠbastien Wilmet <swilmet gnome org>
Date: Mon Jul 7 21:41:14 2014 +0200
test-file-saver: print error when operation not supported
tests/test-file-saver.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/tests/test-file-saver.c b/tests/test-file-saver.c
index 5b0783b..19178fb 100644
--- a/tests/test-file-saver.c
+++ b/tests/test-file-saver.c
@@ -136,14 +136,18 @@ mount_cb (GFile *location,
{
g_error_free (error);
}
+
+ /* See https://bugzilla.gnome.org/show_bug.cgi?id=621764 */
else if (error != NULL && error->code == G_IO_ERROR_NOT_SUPPORTED)
{
+ g_printerr ("Ignored error: %s\n", error->message);
g_error_free (error);
/* The unit test can not be run */
gtk_main_quit ();
return;
}
+
else
{
g_assert_no_error (error);
@@ -381,8 +385,10 @@ test_permissions (const gchar *uri,
g_file_delete (location, NULL, NULL);
stream = g_file_create (location, 0, NULL, &error);
+ /* See https://bugzilla.gnome.org/show_bug.cgi?id=621764 */
if (error && error->code == G_IO_ERROR_NOT_SUPPORTED)
{
+ g_printerr ("Ignored error: %s\n", error->message);
g_error_free (error);
return;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]