File: workaround_tests_issue.patch

package info (click to toggle)
at-spi2-core 2.46.0-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 5,972 kB
  • sloc: ansic: 43,437; xml: 1,572; python: 243; sh: 239; makefile: 20
file content (46 lines) | stat: -rw-r--r-- 1,227 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
From: Sebastien Bacher <seb128@ubuntu.com>
Date: Thu, 22 Sep 2022 11:29:26 -0400
Subject: workaround tests issue

https://gitlab.gnome.org/GNOME/at-spi2-core/-/issues/89
---
 tests/at-spi2-atk/test-application.c | 11 -----------
 1 file changed, 11 deletions(-)

diff --git a/tests/at-spi2-atk/test-application.c b/tests/at-spi2-atk/test-application.c
index d2fb14b..7844461 100644
--- a/tests/at-spi2-atk/test-application.c
+++ b/tests/at-spi2-atk/test-application.c
@@ -31,9 +31,7 @@
 #include <stdio.h>
 #include <string.h>
 #include <stdlib.h>
-#include <signal.h>
 #include <glib.h>
-#include <glib-unix.h>
 #include <atk/atk.h>
 #include <atk-bridge.h>
 #include "my-atk.h"
@@ -95,14 +93,6 @@ static GOptionEntry optentries[] = {
   {NULL}
 };
 
-static gboolean
-sigterm_received_cb (gpointer user_data)
-{
-  GMainLoop *mainloop = user_data;
-  g_main_loop_quit (mainloop);
-  return G_SOURCE_REMOVE;
-}
-
 int main (int argc, char *argv[])
 {
   GOptionContext *opt;
@@ -119,7 +109,6 @@ int main (int argc, char *argv[])
   atk_bridge_adaptor_init (NULL, NULL);
 
   mainloop = g_main_loop_new (NULL, FALSE);
-  g_unix_signal_add (SIGTERM, sigterm_received_cb, mainloop);
   g_main_loop_run (mainloop);
 
   return 0;