Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-commits
Navigation:
Lists: gentoo-commits: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-commits@g.o
From: "Leonardo Boshell (leonardop)" <leonardop@g.o>
Subject: gentoo-x86 commit in gnome-extra/at-spi/files: at-spi-1.18.1-tests.patch
Date: Tue, 18 Sep 2007 11:27:25 +0000
leonardop    07/09/18 11:27:25

  Added:                at-spi-1.18.1-tests.patch
  Log:
  Added patch to fix tests (bug #188036)
  (Portage version: 2.1.3.9)

Revision  Changes    Path
1.1                  gnome-extra/at-spi/files/at-spi-1.18.1-tests.patch

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/gnome-extra/at-spi/files/at-spi-1.18.1-tests.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/gnome-extra/at-spi/files/at-spi-1.18.1-tests.patch?rev=1.1&content-type=text/plain

Index: at-spi-1.18.1-tests.patch
===================================================================
diff -NurdpB at-spi-1.18.1/atk-bridge/bridge.c at-spi-1.18.1-patched/atk-bridge/bridge.c
--- at-spi-1.18.1/atk-bridge/bridge.c	2007-04-09 02:34:37.000000000 -0500
+++ at-spi-1.18.1-patched/atk-bridge/bridge.c	2007-09-18 05:08:39.000000000 -0500
@@ -430,10 +430,23 @@ spi_atk_bridge_get_registry (void)
 	  
 	  if (ev._major != CORBA_NO_EXCEPTION)
 	  {
+		  gchar *err_desc = NULL;
+		  const CORBA_char *id = CORBA_exception_id (&ev);
+
+		  if (strcmp(id, "IDL:Bonobo/GeneralError:1.0") == 0)
+		  {
+			  Bonobo_GeneralError* ge = CORBA_exception_value (&ev);
+			  err_desc = g_strdup_printf ("bonobo activation problem: %s",
+				  ge->description);
+		  }
+
 		  g_error ("Accessibility app error: exception during "
-			   "registry activation from id: %s\n",
-			   CORBA_exception_id (&ev));
+			   "registry activation from id: %s\n"
+			   "Error description: %s\n", id, err_desc == NULL ? "-" : err_desc);
+
 		  CORBA_exception_free (&ev);
+		  if (err_desc != NULL)
+			  g_free (err_desc);
 	  }
 	  
 	  if (registry_died && registry) {
diff -NurdpB at-spi-1.18.1/test/Makefile.am at-spi-1.18.1-patched/test/Makefile.am
--- at-spi-1.18.1/test/Makefile.am	2007-04-09 01:37:04.000000000 -0500
+++ at-spi-1.18.1-patched/test/Makefile.am	2007-09-18 04:45:04.000000000 -0500
@@ -39,9 +39,8 @@ INCLUDES = -I$(top_srcdir)           \
 
 LDADD = ../libspi/libspi.la ../cspi/libcspi.la ../login-helper/libloginhelper.la $(TESTS_LIBS) $(X_LIBS) $(XINPUT_LIBS)
 
-TESTS = test-simple
+TESTS = run-tests
 
 TESTS_ENVIRONMENT =					\
-	LD_LIBRARY_PATH=$(top_builddir)/libspi/.libs/:$(top_builddir)/cspi/.libs/	\
-	PATH=$(top_builddir)/registryd/.libs
+	REGISTRYD=$(top_builddir)/registryd/at-spi-registryd /bin/sh
 
diff -NurdpB at-spi-1.18.1/test/run-tests at-spi-1.18.1-patched/test/run-tests
--- at-spi-1.18.1/test/run-tests	1969-12-31 19:00:00.000000000 -0500
+++ at-spi-1.18.1-patched/test/run-tests	2007-09-18 05:56:32.000000000 -0500
@@ -0,0 +1,18 @@
+#! /bin/sh
+
+../libtool --mode=execute $REGISTRYD &
+regd_pid=$!
+
+while true; do
+	sleep 1
+	q=`bonobo-activation-run-query "has(repo_ids, 'IDL:Accessibility/Registry:1.0') && _active"`
+	echo $q | fgrep -q 'number of results: 0' || break
+done
+
+./test-simple
+exit_code=$?
+
+kill $regd_pid
+wait $regd_pid
+
+exit $exit_code
diff -NurdpB at-spi-1.18.1/test/test-simple.c at-spi-1.18.1-patched/test/test-simple.c
--- at-spi-1.18.1/test/test-simple.c	2007-04-09 01:37:04.000000000 -0500
+++ at-spi-1.18.1-patched/test/test-simple.c	2007-09-18 05:08:39.000000000 -0500
@@ -714,7 +714,7 @@ test_keylisteners (void)
 	key_listener = SPI_createAccessibleKeystrokeListener (
 		key_listener_cb, &stroke);
 
-	test_keyset = SPI_createAccessibleKeySet (1, "=", NULL, NULL);
+	test_keyset = SPI_createAccessibleKeySet (1, "t", NULL, NULL);
 
 	g_assert (SPI_registerAccessibleKeystrokeListener (
 		key_listener,
@@ -725,11 +725,11 @@ test_keylisteners (void)
 
 	for (i = 0; i < 3; i++) {
 		memset (&stroke, 0, sizeof (AccessibleKeystroke));
-		g_assert (SPI_generateKeyboardEvent ('=', NULL, SPI_KEY_SYM));
+		g_assert (SPI_generateKeyboardEvent ('t', NULL, SPI_KEY_SYM));
 		while (!(key_press_received))
 			g_main_context_iteration (NULL, TRUE);
 		fprintf (stderr, "p [%s]", stroke.keystring);
-	        g_assert (!strcmp (stroke.keystring, "="));
+	        g_assert (!strcmp (stroke.keystring, "t"));
 		while (!(key_release_received))
 			g_main_context_iteration (NULL, TRUE);
 		fprintf (stderr, "r [%s]", stroke.keystring);



-- 
gentoo-commits@g.o mailing list


Navigation:
Lists: gentoo-commits: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
gentoo-x86 commit in gnome-extra/at-spi: at-spi-1.18.1-r1.ebuild ChangeLog
Next by thread:
gentoo-x86 commit in app-office/openoffice/files/2.3.0: ucb-no-CURL_NO_OLDIES.diff
Previous by date:
gentoo-x86 commit in gnome-extra/at-spi: at-spi-1.18.1-r1.ebuild ChangeLog
Next by date:
gentoo-x86 commit in app-office/openoffice-bin: openoffice-bin-2.3.0.ebuild ChangeLog


Updated Mar 02, 2011

Summary: Archive of the gentoo-commits mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.