[glib/wip/pwithnall/more-macos-fixes] tests: Skip various default handler tests on macOS



commit 059a5fd4dabfe72939e669ee7c84dd938e3bcd6a
Author: Philip Withnall <pwithnall endlessos org>
Date:   Fri Jun 24 12:43:18 2022 +0100

    tests: Skip various default handler tests on macOS
    
    They are not currently supported by `gosxappinfo.m`.
    
    Signed-off-by: Philip Withnall <pwithnall endlessos org>

 gio/tests/file.c | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/gio/tests/file.c b/gio/tests/file.c
index 04805931b7..9a15f9726e 100644
--- a/gio/tests/file.c
+++ b/gio/tests/file.c
@@ -3493,8 +3493,8 @@ test_query_default_handler_uri (void)
   GFile *file;
   GFile *invalid_file;
 
-#ifdef G_OS_WIN32
-  g_test_skip ("Default URI handlers are not currently supported on Windows");
+#if defined(G_OS_WIN32) || defined(__APPLE__)
+  g_test_skip ("Default URI handlers are not currently supported on Windows or macOS");
   return;
 #endif
 
@@ -3536,8 +3536,8 @@ test_query_default_handler_file (void)
   const char buffer[] = "Text file!\n";
   const guint8 binary_buffer[] = "\xde\xad\xbe\xff";
 
-#ifdef G_OS_WIN32
-  g_test_skip ("Default URI handlers are not currently supported on Windows");
+#if defined(G_OS_WIN32) || defined(__APPLE__)
+  g_test_skip ("Default URI handlers are not currently supported on Windows or macOS");
   return;
 #endif
 
@@ -3626,8 +3626,8 @@ test_query_default_handler_file_async (void)
   const guint8 binary_buffer[] = "\xde\xad\xbe\xff";
   GError *error = NULL;
 
-#ifdef G_OS_WIN32
-  g_test_skip ("Default URI handlers are not currently supported on Windows");
+#if defined(G_OS_WIN32) || defined(__APPLE__)
+  g_test_skip ("Default URI handlers are not currently supported on Windows or macOS");
   return;
 #endif
 
@@ -3716,8 +3716,8 @@ test_query_default_handler_uri_async (void)
   GFile *file;
   GFile *invalid_file;
 
-#ifdef G_OS_WIN32
-  g_test_skip ("Default URI handlers are not currently supported on Windows");
+#if defined(G_OS_WIN32) || defined(__APPLE__)
+  g_test_skip ("Default URI handlers are not currently supported on Windows or macOS");
   return;
 #endif
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]