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




commit 5685546ab1e07d853fb9b97fed40a19ffbe4d324
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]