[glib/wip/hadess/add-memory-monitor] tests: Disable another timeout test by default



commit e55b7889300a716d8086e6c72dd3d9ae5c966a74
Author: Bastien Nocera <hadess hadess net>
Date:   Wed Dec 4 15:47:01 2019 +0100

    tests: Disable another timeout test by default
    
    Don't run this timeout test unless "thorough" tests are requested.
    
    See commit 3894335dc6e57812eb72dcc4ed57c7d3b0bc30f9

 glib/tests/mainloop.c | 6 ++++++
 1 file changed, 6 insertions(+)
---
diff --git a/glib/tests/mainloop.c b/glib/tests/mainloop.c
index c3652a7e4..a6dcc794f 100644
--- a/glib/tests/mainloop.c
+++ b/glib/tests/mainloop.c
@@ -172,6 +172,12 @@ test_timeouts (void)
   GMainLoop *loop;
   GSource *source;
 
+  if (!g_test_thorough ())
+    {
+      g_test_skip ("Not running timing heavy test");
+      return;
+    }
+
   a = b = c = 0;
 
   ctx = g_main_context_new ();


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