* gdb.base/sigall.c (main): Ensure all signals aren't blocked.
authorDoug Evans <dje@google.com>
Sun, 3 Feb 2008 00:42:55 +0000 (00:42 +0000)
committerDoug Evans <dje@google.com>
Sun, 3 Feb 2008 00:42:55 +0000 (00:42 +0000)
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/sigall.c

index 68e581b7bcee636148af18acc1cef248c77343be..10e4a03d627084e769a16f71ea37fccbfb75c03f 100644 (file)
@@ -1,3 +1,7 @@
+2008-02-02  Doug Evans  <dje@google.com>
+
+       * gdb.base/sigall.c (main): Ensure all signals aren't blocked.
+
 2007-02-01  Joel Brobecker  <brobecker@adacore.com>
 
        * gdb.ada/sym_print_name: New test program.
index 30d06f367d309f39fdc7db813df04cff02b57e7c..28ae192ebb338e6097d150a6391b55be3bd5e339 100644 (file)
@@ -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);