[glib: 3/4] tests: Re-enable address sanitizer for gdbus-test-codegen




commit bed82b807fc99537da6ab96ec77fe4d6244c7752
Author: Philip Withnall <pwithnall endlessos org>
Date:   Tue Mar 8 20:11:24 2022 +0000

    tests: Re-enable address sanitizer for gdbus-test-codegen
    
    Now that the leaks are fixed, this test can be run under the sanitizer
    again.
    
    This is a partial revert of commit
    f3783520514a6ba8d15454e14175d086883cdb0f.
    
    Signed-off-by: Philip Withnall <pwithnall endlessos org>
    
    Helps: #2312

 gio/tests/gdbus-test-codegen.c | 15 ---------------
 1 file changed, 15 deletions(-)
---
diff --git a/gio/tests/gdbus-test-codegen.c b/gio/tests/gdbus-test-codegen.c
index cd8424118..22628c078 100644
--- a/gio/tests/gdbus-test-codegen.c
+++ b/gio/tests/gdbus-test-codegen.c
@@ -23,8 +23,6 @@
 #include <string.h>
 #include <stdio.h>
 
-#include "glib/glib-private.h"
-
 #include "gdbus-tests.h"
 
 #if GLIB_VERSION_MIN_REQUIRED >= GLIB_VERSION_2_64
@@ -1304,18 +1302,6 @@ static gpointer
 check_proxies_in_thread (gpointer user_data)
 {
   GMainLoop *loop = user_data;
-#ifdef _GLIB_ADDRESS_SANITIZER
-
-  /* Silence "Not available before 2.38" when using old API */
-  G_GNUC_BEGIN_IGNORE_DEPRECATIONS
-  g_test_incomplete ("FIXME: Leaks a GWeakRef, see glib#2312");
-  G_GNUC_END_IGNORE_DEPRECATIONS
-
-  (void) check_thread_proxies;
-  (void) check_authorize_proxy;
-  (void) check_bat_proxy;
-  (void) check_bar_proxy;
-#else
   GMainContext *thread_context;
   GMainLoop *thread_loop;
   GError *error;
@@ -1390,7 +1376,6 @@ check_proxies_in_thread (gpointer user_data)
 
   g_main_loop_unref (thread_loop);
   g_main_context_unref (thread_context);
-#endif
 
   /* this breaks out of the loop in main() (below) */
   g_main_loop_quit (loop);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]