slomo gstreamer: gstreamer/ gstreamer/libs/gst/check/

[email protected] Tue, 9 Dec 2008 06:46:38 -0800 (PST)
Newsgroups gmane.comp.video.gstreamer.cvs
Message-ID <[email protected]>
CVS Root:       /cvs/gstreamer
Module:         gstreamer
Changes by:     slomo
Date:           Tue Dec 09 2008  14:46:38 UTC

Log message:
* libs/gst/check/gstcheck.c: (gst_check_init):
Revert accidentially commited patch for bug #404631 which
tries to print a backtrace if a testcase is terminated by
a signal. This code was never activated as the corresponding
configure.ac change wasn't committed.

Modified files:
    .               : ChangeLog
    libs/gst/check  : gstcheck.c

Links:
http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gstreamer/ChangeLog.diff?r1=1.4187&r2=1.4188
http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gstreamer/libs/gst/check/gstcheck.c.diff?r1=1.33&r2=1.34

====Begin Diffs====
Index: ChangeLog
===================================================================
RCS file: /cvs/gstreamer/gstreamer/ChangeLog,v
retrieving revision 1.4187
retrieving revision 1.4188
diff -u -d -r1.4187 -r1.4188
--- ChangeLog	9 Dec 2008 10:57:59 -0000	1.4187
+++ ChangeLog	9 Dec 2008 14:46:21 -0000	1.4188
@@ -1,5 +1,13 @@
 2008-12-09  Sebastian Dröge  <[email protected]>
 
+	* libs/gst/check/gstcheck.c: (gst_check_init):
+	Revert accidentially commited patch for bug #404631 which
+	tries to print a backtrace if a testcase is terminated by
+	a signal. This code was never activated as the corresponding
+	configure.ac change wasn't committed.
+
+2008-12-09  Sebastian Dröge  <[email protected]>
 	* tests/check/libs/controller.c: (GST_START_TEST):
 	This test should return TRUE now as syncing an uncontrolled
 	object will succeed now (there's nothing to sync).
Index: gstcheck.c
RCS file: /cvs/gstreamer/gstreamer/libs/gst/check/gstcheck.c,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -d -r1.33 -r1.34
--- gstcheck.c	21 Jun 2008 21:20:13 -0000	1.33
+++ gstcheck.c	9 Dec 2008 14:46:24 -0000	1.34
@@ -28,10 +28,6 @@
  * inside the 'check' directories of various GStreamer packages.
  */
-#ifdef HAVE_CONFIG_H
-#include "config.h"
-#endif
-
 #include "gstcheck.h"
 GST_DEBUG_CATEGORY (check_debug);
@@ -86,88 +82,6 @@
     _gst_check_raised_warning = TRUE;
 }
-#if defined(G_OS_UNIX) && defined(HAVE_EXECINFO_H)
-#include <signal.h>
-#include <execinfo.h>
-#include <unistd.h>
-static struct sigaction oldaction_segv;
-static struct sigaction oldaction_ill;
-static struct sigaction oldaction_bus;
-static struct sigaction oldaction_abrt;
-static gboolean _gst_check_fault_handler_is_setup;      /* FALSE */
-static void
-_gst_check_fault_handler_restore (void)
-{
-  if (!_gst_check_fault_handler_is_setup)
-    return;
-  _gst_check_fault_handler_is_setup = FALSE;
-  sigaction (SIGSEGV, &oldaction_segv, NULL);
-  sigaction (SIGILL, &oldaction_ill, NULL);
-  sigaction (SIGBUS, &oldaction_bus, NULL);
-  sigaction (SIGABRT, &oldaction_abrt, NULL);
-}
-_gst_check_fault_handler_sighandler (int signum)
-  void *bt_arr[100];
-  int num;
-  char *signame;
-  /* We need to restore the fault handler or we'll keep getting it */
-  _gst_check_fault_handler_restore ();
-  switch (signum) {
-    case SIGSEGV:
-      signame = "SIGSEGV";
-      break;
-    case SIGILL:
-      signame = "SIGILL";
-    case SIGBUS:
-      signame = "SIGBUS";
-    case SIGABRT:
-      signame = "SIGABRT";
-    default:
-      signame = "Unknown Signal";
-  }
-  fprintf (stderr, "\nERROR: Caught signal '%s' while running test.\n",
-      signame);
-  fprintf (stderr, "Backtrace:\n");
-  if ((num = backtrace ((void **) bt_arr, G_N_ELEMENTS (bt_arr))))
-    backtrace_symbols_fd (bt_arr, num, STDERR_FILENO);
-_gst_check_fault_handler_setup (void)
-  struct sigaction action;
-  if (_gst_check_fault_handler_is_setup)
-  _gst_check_fault_handler_is_setup = TRUE;
-  memset (&action, 0, sizeof (action));
-  action.sa_handler = _gst_check_fault_handler_sighandler;
-  sigaction (SIGSEGV, &action, &oldaction_segv);
-  sigaction (SIGILL, &action, &oldaction_ill);
-  sigaction (SIGBUS, &action, &oldaction_bus);
-  sigaction (SIGABRT, &action, &oldaction_abrt);
-#endif /* G_OS_UNIX && HAVE_EXECINFO_H */
 /* initialize GStreamer testing */
 void
 gst_check_init (int *argc, char **argv[])
@@ -192,10 +106,6 @@
   check_cond = g_cond_new ();
   check_mutex = g_mutex_new ();
-  _gst_check_fault_handler_setup ();
 /* message checking */

------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/

_______________________________________________
gstreamer-cvs-verbose mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gstreamer-cvs-verbose