diff options
author | Matthias Clasen <mclasen@redhat.com> | 2014-05-30 10:21:43 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2014-05-30 10:22:35 -0400 |
commit | 03a48e1adea2862635c439f8270a5cc2d969289a (patch) | |
tree | 7739918c165aa218209a059a306b421f91c2292c /gobject | |
parent | 367dbdce367fd504804a1256dc393534d6784bfc (diff) |
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.
Diffstat (limited to 'gobject')
-rw-r--r-- | gobject/tests/closure.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gobject/tests/closure.c b/gobject/tests/closure.c index 8c32ee4e0..b76182513 100644 --- a/gobject/tests/closure.c +++ b/gobject/tests/closure.c @@ -196,6 +196,18 @@ int main (int argc, 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_add_func ("/closure/idle", test_closure_idle); |