r26832 - in /desktop/unstable/glib2.0/debian: changelog patches/0001-Document-g_timeout_add_seconds-first-call-latency.patch patches/series

pochu at users.alioth.debian.org pochu at users.alioth.debian.org
Sat Mar 12 10:20:50 UTC 2011


Author: pochu
Date: Sat Mar 12 10:20:40 2011
New Revision: 26832

URL: http://svn.debian.org/wsvn/pkg-gnome/?sc=1&rev=26832
Log:
* d/p/0001-Document-g_timeout_add_seconds-first-call-latency.patch:
  + New patch. Fix a test case that was failing randomly.

Added:
    desktop/unstable/glib2.0/debian/patches/0001-Document-g_timeout_add_seconds-first-call-latency.patch
Modified:
    desktop/unstable/glib2.0/debian/changelog
    desktop/unstable/glib2.0/debian/patches/series

Modified: desktop/unstable/glib2.0/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/unstable/glib2.0/debian/changelog?rev=26832&op=diff
==============================================================================
--- desktop/unstable/glib2.0/debian/changelog [utf-8] (original)
+++ desktop/unstable/glib2.0/debian/changelog [utf-8] Sat Mar 12 10:20:40 2011
@@ -7,6 +7,8 @@
       it only ships translations. This will avoid making glib
       uninstallable on the buildds when it is uploaded until the new
       version has been built.
+  * d/p/0001-Document-g_timeout_add_seconds-first-call-latency.patch:
+    + New patch. Fix a test case that was failing randomly.
 
  -- Emilio Pozuelo Monfort <pochu at debian.org>  Fri, 11 Mar 2011 23:19:30 +0000
 

Added: desktop/unstable/glib2.0/debian/patches/0001-Document-g_timeout_add_seconds-first-call-latency.patch
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/unstable/glib2.0/debian/patches/0001-Document-g_timeout_add_seconds-first-call-latency.patch?rev=26832&op=file
==============================================================================
--- desktop/unstable/glib2.0/debian/patches/0001-Document-g_timeout_add_seconds-first-call-latency.patch (added)
+++ desktop/unstable/glib2.0/debian/patches/0001-Document-g_timeout_add_seconds-first-call-latency.patch [utf-8] Sat Mar 12 10:20:40 2011
@@ -1,0 +1,50 @@
+From 2f35703dcf1ff844801556a97835ff91e8d5f8e8 Mon Sep 17 00:00:00 2001
+From: Emilio Pozuelo Monfort <pochu27 at gmail.com>
+Date: Sat, 12 Mar 2011 10:08:52 +0000
+Subject: [PATCH] Document g_timeout_add_seconds first call latency
+
+And fix /timeout/rounding to not fail if the first call
+happens after 2 seconds.
+
+https://bugzilla.gnome.org/show_bug.cgi?id=644552
+---
+ glib/gmain.c         |    6 +++++-
+ glib/tests/timeout.c |    5 ++++-
+ 2 files changed, 9 insertions(+), 2 deletions(-)
+
+diff --git a/glib/gmain.c b/glib/gmain.c
+index 3a480f3..d4f393e 100644
+--- a/glib/gmain.c
++++ b/glib/gmain.c
+@@ -4118,7 +4118,11 @@ g_timeout_add_seconds_full (gint           priority,
+  * g_timeout_source_new_seconds() and attaches it to the main loop context 
+  * using g_source_attach(). You can do these steps manually if you need 
+  * greater control. Also see g_timout_add_seconds_full().
+- * 
++ *
++ * Note that the first call of the timer may not be precise for timeouts
++ * of one second. If you need finer precision and have such a timeout,
++ * you may want to use g_timeout_add() instead.
++ *
+  * Return value: the ID (greater than 0) of the event source.
+  *
+  * Since: 2.14
+diff --git a/glib/tests/timeout.c b/glib/tests/timeout.c
+index 824afc0..2037029 100644
+--- a/glib/tests/timeout.c
++++ b/glib/tests/timeout.c
+@@ -53,7 +53,10 @@ test_func (gpointer data)
+ 
+   current_time = g_get_monotonic_time ();
+ 
+-  g_assert (current_time / 1000000 - last_time / 1000000 == 1);
++  if (count == 0)
++    g_assert (current_time / 1000000 - last_time / 1000000 <= 2);
++  else
++    g_assert (current_time / 1000000 - last_time / 1000000 == 1);
+ 
+   last_time = current_time;
+   count++;
+-- 
+1.7.4.1
+

Modified: desktop/unstable/glib2.0/debian/patches/series
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/unstable/glib2.0/debian/patches/series?rev=26832&op=diff
==============================================================================
--- desktop/unstable/glib2.0/debian/patches/series [utf-8] (original)
+++ desktop/unstable/glib2.0/debian/patches/series [utf-8] Sat Mar 12 10:20:40 2011
@@ -1,3 +1,4 @@
+0001-Document-g_timeout_add_seconds-first-call-latency.patch
 01_gettext-desktopfiles.patch
 02_gettext-desktopfiles-ubuntu.patch
 03_blacklist-directories.patch




More information about the pkg-gnome-commits mailing list