testsuite: Cosmetics
authorMatthias Clasen <mclasen@redhat.com>
Fri, 24 Mar 2023 16:33:44 +0000 (12:33 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 24 Mar 2023 17:57:16 +0000 (13:57 -0400)
testsuite/gdk/glcontext.c

index 0bc9148064d56b76a9cc39e3925e8263991bca3b..a17113d28854eb1309e5edba23c72746dbce4ef0 100644 (file)
@@ -14,7 +14,7 @@ test_allowed_backends (gconstpointer data)
   GdkGLAPI allowed = GPOINTER_TO_SIZE (data);
   GdkGLAPI not_allowed = (~allowed) & ALL_APIS;
   GdkGLAPI api, random_apis;
-  GdkDisplay *display = gdk_display_get_default ();
+  GdkDisplay *display;
   GdkGLContext *context;
   GError *error = NULL;
 
@@ -28,7 +28,7 @@ test_allowed_backends (gconstpointer data)
     }
 
   context = gdk_display_create_gl_context (display, &error);
-  g_assert (context);
+  g_assert_nonnull (context);
   g_assert_no_error (error);
   g_assert_cmpint (gdk_gl_context_get_api (context), ==, 0);
   g_assert_cmpint (gdk_gl_context_get_allowed_apis (context), ==, ALL_APIS);