mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-23 20:46:14 +01:00
Fix the closure test in continuous
This test has the same problem as the mapping-test - it uses SIGUSR1 without checking the signal mask. Apply the same fix here.
This commit is contained in:
parent
367dbdce36
commit
03a48e1ade
@ -196,6 +196,18 @@ int
|
|||||||
main (int argc,
|
main (int argc,
|
||||||
char *argv[])
|
char *argv[])
|
||||||
{
|
{
|
||||||
|
#ifndef G_OS_WIN32
|
||||||
|
sigset_t sig_mask, old_mask;
|
||||||
|
|
||||||
|
sigemptyset (&sig_mask);
|
||||||
|
sigaddset (&sig_mask, SIGUSR1);
|
||||||
|
if (sigprocmask (SIG_UNBLOCK, &sig_mask, &old_mask) == 0)
|
||||||
|
{
|
||||||
|
if (sigismember (&old_mask, SIGUSR1))
|
||||||
|
g_message ("SIGUSR1 was blocked, unblocking it");
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
g_test_init (&argc, &argv, NULL);
|
g_test_init (&argc, &argv, NULL);
|
||||||
|
|
||||||
g_test_add_func ("/closure/idle", test_closure_idle);
|
g_test_add_func ("/closure/idle", test_closure_idle);
|
||||||
|
Loading…
Reference in New Issue
Block a user