summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChun-wei Fan <fanchunwei@src.gnome.org>2020-04-22 14:56:36 +0800
committerChun-wei Fan <fanchunwei@src.gnome.org>2020-04-22 14:56:36 +0800
commit90a18c07cceeb25da6138b9a43ac40c1f5844bc1 (patch)
tree973ec909d061dd7806c884aa5c542e4b555e5dd5
parentdef974ec6e6dcf635774a7921b84d83c37ef6f14 (diff)
downloadgrilo-master.msvc.tar.gz
tests: Don't build autoptr test on Visual Studiomaster.msvc
g_autoptr() is not supported on Visual Studio, since it is really a GCCism
-rw-r--r--tests/meson.build5
1 files changed, 4 insertions, 1 deletions
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,