[glib/wip/smcv/address-sanitizer: 15/20] gio: Don't run gsocketclient-slow test under sanitizers




commit d1a170ba543f38e7acf1ed95fe9f9b614a4b9aeb
Author: Simon McVittie <smcv collabora com>
Date:   Fri Jan 29 20:24:03 2021 +0000

    gio: Don't run gsocketclient-slow test under sanitizers
    
    AddressSanitizer, UndefinedBehaviourSanitizer and probably others
    involve adding instrumentation into the code under test, which doesn't
    go well with LD_PRELOAD modules that absolutely need to be
    self-contained.
    
    Signed-off-by: Simon McVittie <smcv collabora com>

 gio/tests/meson.build | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/gio/tests/meson.build b/gio/tests/meson.build
index aaa54afae..413dbd0c7 100644
--- a/gio/tests/meson.build
+++ b/gio/tests/meson.build
@@ -152,7 +152,8 @@ if host_machine.system() != 'windows'
     'trash' : {},
   }
 
-  if have_rtld_next
+  # LD_PRELOAD modules don't work so well with AddressSanitizer
+  if have_rtld_next and get_option('b_sanitize') == 'none'
     gio_tests += {
       'gsocketclient-slow' : {
         'depends' : [


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