summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2021-02-17 18:55:36 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2021-02-18 00:04:11 +0200
commit801c6aa7eee8cd49fb2b7b1271b43c84ff67e15b (patch)
tree57161d261c27f269c824450dd8a389d33a45db4b
parenta5b33db55807a9663944d29720ce01eeb26a8bd1 (diff)
downloadmeson-cygwindisabletest.tar.gz
Disable failing Cygwin GIR test.cygwindisabletest
-rwxr-xr-xrun_unittests.py2
-rw-r--r--test cases/frameworks/11 gir subproject/meson.build4
-rw-r--r--test cases/frameworks/12 multiple gir/meson.build4
-rw-r--r--test cases/frameworks/22 gir link order/meson.build4
-rw-r--r--test cases/frameworks/28 gir link order 2/meson.build4
-rw-r--r--test cases/vala/11 generated vapi/meson.build4
6 files changed, 22 insertions, 0 deletions
diff --git a/run_unittests.py b/run_unittests.py
index 550fe36c2..d2e916195 100755
--- a/run_unittests.py
+++ b/run_unittests.py
@@ -3058,6 +3058,8 @@ class AllPlatformTests(BasePlatformTests):
@skip_if_not_base_option('b_lto_threads')
def test_lto_threads(self):
+ if is_cygwin():
+ raise unittest.SkipTest('LTO is broken on Cygwin.')
testdir = os.path.join(self.common_test_dir, '6 linkshared')
env = get_fake_env(testdir, self.builddir, self.prefix)
diff --git a/test cases/frameworks/11 gir subproject/meson.build b/test cases/frameworks/11 gir subproject/meson.build
index a599ae9eb..75cd941a4 100644
--- a/test cases/frameworks/11 gir subproject/meson.build
+++ b/test cases/frameworks/11 gir subproject/meson.build
@@ -5,6 +5,10 @@ if not gir.found()
error('MESON_SKIP_TEST g-ir-scanner not found.')
endif
+if build_machine.system() == 'cygwin'
+ error('MESON_SKIP_TEST GIR seems to be broken in Cygwin and no-one knows how to fix it. Thus we have to disable this.')
+endif
+
python3 = import('python3')
py3 = python3.find_python()
if run_command(py3, '-c', 'import gi;').returncode() != 0
diff --git a/test cases/frameworks/12 multiple gir/meson.build b/test cases/frameworks/12 multiple gir/meson.build
index ddc9830d5..cf5df8c60 100644
--- a/test cases/frameworks/12 multiple gir/meson.build
+++ b/test cases/frameworks/12 multiple gir/meson.build
@@ -5,6 +5,10 @@ if not gir.found()
error('MESON_SKIP_TEST g-ir-scanner not found.')
endif
+if build_machine.system() == 'cygwin'
+ error('MESON_SKIP_TEST GIR seems to be broken in Cygwin and no-one knows how to fix it. Thus we have to disable this.')
+endif
+
gnome = import('gnome')
gobj = dependency('gobject-2.0')
diff --git a/test cases/frameworks/22 gir link order/meson.build b/test cases/frameworks/22 gir link order/meson.build
index 8a714b5a7..36c652d0f 100644
--- a/test cases/frameworks/22 gir link order/meson.build
+++ b/test cases/frameworks/22 gir link order/meson.build
@@ -4,6 +4,10 @@ if not dependency('glib-2.0', required : false).found() or not find_program('g-i
error('MESON_SKIP_TEST glib not found.')
endif
+if build_machine.system() == 'cygwin'
+ error('MESON_SKIP_TEST GIR seems to be broken in Cygwin and no-one knows how to fix it. Thus we have to disable this.')
+endif
+
gnome = import('gnome')
glib = dependency('glib-2.0')
gobject = dependency('gobject-2.0')
diff --git a/test cases/frameworks/28 gir link order 2/meson.build b/test cases/frameworks/28 gir link order 2/meson.build
index a26531bce..88aa27725 100644
--- a/test cases/frameworks/28 gir link order 2/meson.build
+++ b/test cases/frameworks/28 gir link order 2/meson.build
@@ -4,6 +4,10 @@ if not dependency('gobject-2.0', required : false).found() or not find_program('
error('MESON_SKIP_TEST gobject not found.')
endif
+if build_machine.system() == 'cygwin'
+ error('MESON_SKIP_TEST GIR seems to be broken in Cygwin and no-one knows how to fix it. Thus we have to disable this.')
+endif
+
gnome = import('gnome')
gobject = dependency('gobject-2.0')
diff --git a/test cases/vala/11 generated vapi/meson.build b/test cases/vala/11 generated vapi/meson.build
index d5f38cad6..eb5764936 100644
--- a/test cases/vala/11 generated vapi/meson.build
+++ b/test cases/vala/11 generated vapi/meson.build
@@ -1,5 +1,9 @@
project('vapi-test', ['c', 'vala'])
+if build_machine.system() == 'cygwin'
+ error('MESON_SKIP_TEST GIR seems to be broken in Cygwin and no-one knows how to fix it. Thus we have to disable this.')
+endif
+
gnome = import('gnome')
subdir('libfoo')
subdir('libbar')