[grilo/master.msvc: 13/13] tests: Don't build autoptr test on Visual Studio



commit 90a18c07cceeb25da6138b9a43ac40c1f5844bc1
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Wed Apr 22 14:56:36 2020 +0800

    tests: Don't build autoptr test on Visual Studio
    
    g_autoptr() is not supported on Visual Studio, since it is really a GCCism

 tests/meson.build | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/tests/meson.build b/tests/meson.build
index e6910d1..dd0604a 100644
--- a/tests/meson.build
+++ b/tests/meson.build
@@ -5,12 +5,15 @@
 # Copyright (C) 2018 Grilo Project
 
 tests = [
-    'autoptr',
     'lib-net',
     'media',
     'registry',
 ]
 
+if cc.get_id() != 'msvc'
+  tests += 'autoptr'
+endif
+
 foreach t: tests
     source = t + '.c'
     exe = executable(t,


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