Bump max time in test_method_calls_on_proxy() test
authorMartin Pitt <martinpitt@gnome.org>
Mon, 20 Aug 2012 04:02:31 +0000 (06:02 +0200)
committerMartin Pitt <martinpitt@gnome.org>
Fri, 31 Aug 2012 16:03:26 +0000 (18:03 +0200)
On slower platforms, the overhead of the 240 D-BUS Sleep calls is larger than
the current maximum of 6 seconds. A run on a Panda board sometimes fails with

  ERROR:/build/buildd/glib2.0-2.33.8/./gio/tests/gdbus-threading.c:409:test_method_calls_on_proxy:
  assertion failed (elapsed_msec < 6000): (7365 < 6000)

Bump maximum time to 8 seconds to be more resilient to this.

https://bugzilla.gnome.org/show_bug.cgi?id=682222

gio/tests/gdbus-threading.c

index c1fc97e..728b70e 100644 (file)
@@ -406,7 +406,7 @@ test_method_calls_on_proxy (GDBusProxy *proxy)
 
       /* elapsed_msec should be 4000 msec +/- change for overhead/inaccuracy */
       g_assert_cmpint (elapsed_msec, >=, 3950);
-      g_assert_cmpint (elapsed_msec,  <, 6000);
+      g_assert_cmpint (elapsed_msec,  <, 8000);
 
       g_print (" ");
     }