[gtksourceview] test-file-saver: print error when operation not supported



commit be1dbf0e6b68689e207468e767e323fc82f381f3
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 046d805..0349482 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]