[mutter] tests/headless-start: Stop ignoring the missed frame warnings



commit fbc00a60cf19e57795a9adc2f653627a17cab5b8
Author: Jonas Ã…dahl <jadahl gmail com>
Date:   Tue Mar 2 19:49:23 2021 +0100

    tests/headless-start: Stop ignoring the missed frame warnings
    
    They don't seem to happen anymore.
    
    Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1861>

 src/tests/headless-start-test.c | 20 --------------------
 1 file changed, 20 deletions(-)
---
diff --git a/src/tests/headless-start-test.c b/src/tests/headless-start-test.c
index ca06524d6b..660819583c 100644
--- a/src/tests/headless-start-test.c
+++ b/src/tests/headless-start-test.c
@@ -32,8 +32,6 @@
 #include "tests/test-utils.h"
 #include "wayland/meta-wayland.h"
 
-#define FRAME_WARNING "Frame has assigned frame counter but no frame drawn time"
-
 static gboolean
 run_tests (gpointer data)
 {
@@ -41,8 +39,6 @@ run_tests (gpointer data)
   MetaSettings *settings = meta_backend_get_settings (backend);
   gboolean ret;
 
-  g_test_log_set_fatal_handler (NULL, NULL);
-
   meta_settings_override_experimental_features (settings);
 
   meta_settings_enable_experimental_feature (
@@ -56,20 +52,6 @@ run_tests (gpointer data)
   return FALSE;
 }
 
-static gboolean
-ignore_frame_counter_warning (const gchar    *log_domain,
-                              GLogLevelFlags  log_level,
-                              const gchar    *message,
-                              gpointer        user_data)
-{
-  if ((log_level & G_LOG_LEVEL_WARNING) &&
-      g_strcmp0 (log_domain, "mutter") == 0 &&
-      g_str_has_suffix (message, FRAME_WARNING))
-    return FALSE;
-
-  return TRUE;
-}
-
 static void
 meta_test_headless_start (void)
 {
@@ -224,8 +206,6 @@ main (int argc, char *argv[])
   meta_init ();
   meta_register_with_session ();
 
-  g_test_log_set_fatal_handler (ignore_frame_counter_warning, NULL);
-
   g_idle_add (run_tests, NULL);
 
   return meta_run ();


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