glib/tests/unix: Only check for SA_NOCLDSTOP on SIGCHLD

This commit is contained in:
John Ralls 2024-04-15 17:12:28 +02:00 committed by Marco Trevisan (Treviño)
parent 137db219a7
commit 8c842792a9

View File

@ -520,7 +520,9 @@ test_signal (int signum)
g_assert_no_errno (sigaction (signum, NULL, &action));
g_assert_true (action.sa_flags & SA_NOCLDSTOP);
if (signum == SIGCHLD)
g_assert_true (action.sa_flags & SA_NOCLDSTOP);
#ifdef SA_RESTART
g_assert_true (action.sa_flags & SA_RESTART);
#endif