OSDN Git Service

/mainloop/timeouts test: Reduce race condition
authorMartin Pitt <martinpitt@gnome.org>
Wed, 27 Jun 2012 09:46:28 +0000 (11:46 +0200)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 14 Jul 2012 20:33:18 +0000 (16:33 -0400)
commit7f3295b3b3c8b00ff7ec007fe139da318cf043ab
tree8afc6ee3cde5b9980054ba5c80ebc9cac1a6c7a3
parent567f4d0d120a75cc6208e36c3a606492efbed0a8
/mainloop/timeouts test: Reduce race condition

Due to load, particular traits of the architecture, or other circumstances, the
/mainloop/timeouts sometimes manages to call the "every
100 ms" timer loop only 9 times in 1050 ms.

This is an inherent race-condition in the test; allow it some slack and accept
9 times as well.

https://bugzilla.gnome.org/show_bug.cgi?id=678959
glib/tests/mainloop.c