After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 725266 - add timeout alarm for tests to catch deadlocks
add timeout alarm for tests to catch deadlocks
Status: RESOLVED OBSOLETE
Product: glib
Classification: Platform
Component: gtest
unspecified
Other All
: Normal enhancement
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2014-02-26 19:45 UTC by Allison Karlitskaya (desrt)
Modified: 2018-05-24 16:20 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Allison Karlitskaya (desrt) 2014-02-26 19:45:54 UTC
we should add an alarm function to automatically fail tests that take more than a certain amount of time to run (on the assumption that they've deadlocked).

something on the order of a minute is probably fine.

i think the best way to do this would be to spin up a dedicated thread that sits around waiting for time to pass.  once enough time passes, it can abort the process.

i specifically don't think that we should try to use gmaincontext to do this because some tests still fork, and forking after gmaincontext is up is not safe.

it should be possible for individual tests to adjust the timeout (for performance tests) or for the environment to do it, either via environment variable or commandline switch (to facilitate 'make check' on very very slow builders).
Comment 1 Allison Karlitskaya (desrt) 2014-03-05 14:06:02 UTC
Sorry for the delay.  Fixed!
Comment 2 Allison Karlitskaya (desrt) 2014-03-05 14:06:59 UTC
erm... git-bz fail?
Comment 3 GNOME Infrastructure Team 2018-05-24 16:20:20 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/glib/issues/838.