From 848ee45bb2c9ff81269e9232384f351855785ecb Mon Sep 17 00:00:00 2001 From: Aleksey Filippov Date: Wed, 21 Mar 2018 17:30:21 +0000 Subject: [PATCH] Disable b_ndebug tests on MSVC --- test cases/common/185 ndebug if-release enabled/meson.build | 4 ++++ test cases/common/186 ndebug if-release disabled/meson.build | 4 ++++ test cases/unit/25 ndebug if-release/meson.build | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/test cases/common/185 ndebug if-release enabled/meson.build b/test cases/common/185 ndebug if-release enabled/meson.build index be263752a..ac4f0e772 100644 --- a/test cases/common/185 ndebug if-release enabled/meson.build +++ b/test cases/common/185 ndebug if-release enabled/meson.build @@ -4,4 +4,8 @@ project('ndebug enabled', 'c', 'b_ndebug=if-release', ]) +if meson.get_compiler('c').get_id() == 'msvc' + error('MESON_SKIP_TEST b_ndebug is not supported on Visual Studio') +endif + test('exe', executable('main', 'main.c')) diff --git a/test cases/common/186 ndebug if-release disabled/meson.build b/test cases/common/186 ndebug if-release disabled/meson.build index a9a79ea9b..f2678edbd 100644 --- a/test cases/common/186 ndebug if-release disabled/meson.build +++ b/test cases/common/186 ndebug if-release disabled/meson.build @@ -4,4 +4,8 @@ project('ndebug disabled', 'c', 'b_ndebug=if-release', ]) +if meson.get_compiler('c').get_id() == 'msvc' + error('MESON_SKIP_TEST b_ndebug is not supported on Visual Studio') +endif + test('exe', executable('main', 'main.c')) diff --git a/test cases/unit/25 ndebug if-release/meson.build b/test cases/unit/25 ndebug if-release/meson.build index 4af2406d2..d45bd8676 100644 --- a/test cases/unit/25 ndebug if-release/meson.build +++ b/test cases/unit/25 ndebug if-release/meson.build @@ -1,3 +1,7 @@ project('ndebug enabled', 'c') +if meson.get_compiler('c').get_id() == 'msvc' + error('MESON_SKIP_TEST b_ndebug is not supported on Visual Studio') +endif + executable('main', 'main.c')