[gdk-pixbuf] tests: Bump timeouts for long-running tests



commit 84bf18db7e916db43ebcfca9134146c2a3acba12
Author: Bastien Nocera <hadess hadess net>
Date:   Tue Sep 19 11:30:34 2017 +0200

    tests: Bump timeouts for long-running tests
    
    The pixbuf-area-updated and pixbuf-randomly-modified tests are
    particularly taxing on the CPU, and though modern desktop machines
    shouldn't have a problem dealing with those under 30 seconds, tests
    are run in parallel, and busy build machines might fail those tests
    because of timeouts.
    
    Bump the timeouts to 300 seconds for those long tests to avoid test
    failures.

 tests/meson.build |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/tests/meson.build b/tests/meson.build
index 0b40c59..77a427a 100644
--- a/tests/meson.build
+++ b/tests/meson.build
@@ -116,13 +116,21 @@ foreach t: installed_tests
                         ],
                         c_args: common_cflags)
 
+  # Two particularly slow tests
+  if test_name == 'pixbuf-area-updated' or test_name == 'pixbuf-randomly-modified'
+    timeout = 300
+  else
+    timeout = 30
+  endif
+
   test(test_name, test_bin,
        args: [ '-k', '--tap' ],
        env: [
          'G_TEST_SRCDIR=@0@'.format(meson.current_source_dir()),
          'G_TEST_BUILDDIR=@0@'.format(meson.current_build_dir()),
          'GDK_PIXBUF_MODULE_FILE=@0@'.format(loaders_cache.full_path()),
-       ])
+       ],
+       timeout: timeout)
 endforeach
 
 executable('pixbuf-read',


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