* [RFA] make gdb.base/sigall.c more robust
@ 2008-01-17 23:32 Doug Evans
2008-01-28 23:51 ` Doug Evans
2008-01-30 1:02 ` Daniel Jacobowitz
0 siblings, 2 replies; 3+ messages in thread
From: Doug Evans @ 2008-01-17 23:32 UTC (permalink / raw)
To: gdb-patches
One environment in which I run the gdb testsuite has a few signals blocked
at the start. If tcl/expect/bash had the ability to unblock signals it might
be preferable to unblock the signals there (I couldn't find any),
but OTOH testcases should be reasonably robust.
2008-01-17 Doug Evans <dje@google.com>
* gdb.base/sigall.c (main): Ensure all signals aren't blocked.
Index: sigall.c
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.base/sigall.c,v
retrieving revision 1.1.1.2
diff -u -p -u -p -r1.1.1.2 sigall.c
--- sigall.c 28 Jun 1999 16:04:02 -0000 1.1.1.2
+++ sigall.c 17 Jan 2008 23:18:55 -0000
@@ -1581,6 +1581,18 @@ main ()
set_debug_traps ();
breakpoint ();
#endif
+
+#ifdef SIG_SETMASK
+ /* Ensure all the signals aren't blocked.
+ The environment in which the testsuite is run may have blocked some
+ for whatever reason. */
+ {
+ sigset_t newset;
+ sigemptyset (&newset);
+ sigprocmask (SIG_SETMASK, &newset, NULL);
+ }
+#endif
+
signal (SIGABRT, handle_ABRT);
#ifdef SIGHUP
signal (SIGHUP, handle_HUP);
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [RFA] make gdb.base/sigall.c more robust
2008-01-17 23:32 [RFA] make gdb.base/sigall.c more robust Doug Evans
@ 2008-01-28 23:51 ` Doug Evans
2008-01-30 1:02 ` Daniel Jacobowitz
1 sibling, 0 replies; 3+ messages in thread
From: Doug Evans @ 2008-01-28 23:51 UTC (permalink / raw)
To: gdb-patches
Ping ...
On Jan 17, 2008 3:31 PM, Doug Evans <dje@google.com> wrote:
> One environment in which I run the gdb testsuite has a few signals blocked
> at the start. If tcl/expect/bash had the ability to unblock signals it might
> be preferable to unblock the signals there (I couldn't find any),
> but OTOH testcases should be reasonably robust.
>
> 2008-01-17 Doug Evans <dje@google.com>
>
> * gdb.base/sigall.c (main): Ensure all signals aren't blocked.
>
> Index: sigall.c
> ===================================================================
> RCS file: /cvs/src/src/gdb/testsuite/gdb.base/sigall.c,v
> retrieving revision 1.1.1.2
> diff -u -p -u -p -r1.1.1.2 sigall.c
> --- sigall.c 28 Jun 1999 16:04:02 -0000 1.1.1.2
> +++ sigall.c 17 Jan 2008 23:18:55 -0000
> @@ -1581,6 +1581,18 @@ main ()
> set_debug_traps ();
> breakpoint ();
> #endif
> +
> +#ifdef SIG_SETMASK
> + /* Ensure all the signals aren't blocked.
> + The environment in which the testsuite is run may have blocked some
> + for whatever reason. */
> + {
> + sigset_t newset;
> + sigemptyset (&newset);
> + sigprocmask (SIG_SETMASK, &newset, NULL);
> + }
> +#endif
> +
> signal (SIGABRT, handle_ABRT);
> #ifdef SIGHUP
> signal (SIGHUP, handle_HUP);
>
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [RFA] make gdb.base/sigall.c more robust
2008-01-17 23:32 [RFA] make gdb.base/sigall.c more robust Doug Evans
2008-01-28 23:51 ` Doug Evans
@ 2008-01-30 1:02 ` Daniel Jacobowitz
1 sibling, 0 replies; 3+ messages in thread
From: Daniel Jacobowitz @ 2008-01-30 1:02 UTC (permalink / raw)
To: Doug Evans; +Cc: gdb-patches
On Thu, Jan 17, 2008 at 03:31:41PM -0800, Doug Evans wrote:
> One environment in which I run the gdb testsuite has a few signals blocked
> at the start. If tcl/expect/bash had the ability to unblock signals it might
> be preferable to unblock the signals there (I couldn't find any),
> but OTOH testcases should be reasonably robust.
>
> 2008-01-17 Doug Evans <dje@google.com>
>
> * gdb.base/sigall.c (main): Ensure all signals aren't blocked.
OK.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-01-30 1:01 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-01-17 23:32 [RFA] make gdb.base/sigall.c more robust Doug Evans
2008-01-28 23:51 ` Doug Evans
2008-01-30 1:02 ` Daniel Jacobowitz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox