# HG changeset patch # User Eric Blake # Date 1214224868 21600 # Node ID 33944c807312a98b50413e4417438e8a363ffa6e # Parent d8fe05396cf4c37a9f9314e8016ae9b7ca491e32 Avoid SA_ namespace. * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK. Reported by Ralf Wildenhues. Signed-off-by: Eric Blake diff -r d8fe05396cf4 -r 33944c807312 ChangeLog --- a/ChangeLog Mon Jun 23 06:24:53 2008 -0600 +++ b/ChangeLog Mon Jun 23 06:41:08 2008 -0600 @@ -1,5 +1,9 @@ 2008-06-23 Eric Blake + Avoid SA_ namespace. + * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK. + Reported by Ralf Wildenhues. + Avoid test failure due to SA_RESTORER. * tests/test-sigaction.c (SA_MASK): New macro. (main): Avoid failing due to extension flags being set. diff -r d8fe05396cf4 -r 33944c807312 tests/test-sigaction.c --- a/tests/test-sigaction.c Mon Jun 23 06:24:53 2008 -0600 +++ b/tests/test-sigaction.c Mon Jun 23 06:41:08 2008 -0600 @@ -52,8 +52,8 @@ /* Define a mask of flags required by POSIX. Some implementations provide other flags as extensions, such as SA_RESTORER, that we must ignore in this test. */ -#define SA_MASK (SA_NOCLDSTOP | SA_ONSTACK | SA_RESETHAND | SA_RESTART \ - SA_SIGINFO | SA_NOCLDWAIT | SA_NODEFER) +#define MASK_SA_FLAGS (SA_NOCLDSTOP | SA_ONSTACK | SA_RESETHAND | SA_RESTART \ + SA_SIGINFO | SA_NOCLDWAIT | SA_NODEFER) /* This test is unsafe in the presence of an asynchronous SIGABRT, because we install a signal-handler that is intentionally not @@ -95,7 +95,7 @@ ASSERT (raise (SIGABRT) == 0); sa.sa_flags = SA_RESETHAND | SA_NODEFER; ASSERT (sigaction (SIGABRT, &sa, &old_sa) == 0); - ASSERT ((old_sa.sa_flags & SA_MASK) == 0); + ASSERT ((old_sa.sa_flags & MASK_SA_FLAGS) == 0); ASSERT (old_sa.sa_handler == handler); ASSERT (raise (SIGABRT) == 0); sa.sa_handler = SIG_DFL;