Merge pull request #8786 from jon-turney/cygwin-tests-reenable

Re-enable various tests on Cygwin
pull/8794/head
Jussi Pakkanen 4 years ago committed by GitHub
commit df960b0a35
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      azure-pipelines.yml
  2. 2
      run_unittests.py
  3. 4
      test cases/common/127 generated assembly/meson.build
  4. 7
      test cases/common/6 linkshared/cpplib.cpp
  5. 12
      test cases/common/6 linkshared/cpplib.h
  6. 2
      test cases/common/6 linkshared/cppmain.cpp
  7. 4
      test cases/frameworks/11 gir subproject/meson.build
  8. 4
      test cases/frameworks/12 multiple gir/meson.build
  9. 4
      test cases/frameworks/22 gir link order/meson.build
  10. 4
      test cases/frameworks/28 gir link order 2/meson.build
  11. 4
      test cases/vala/11 generated vapi/meson.build

@ -116,8 +116,8 @@ jobs:
displayName: Install Dependencies
- script: |
set PATH=%CYGWIN_ROOT%\bin;%SYSTEMROOT%\system32
env.exe -- python3 -m pip --disable-pip-version-check install gcovr pefile jsonschema
displayName: "pip install gcovr pefile jsonschema (pytest-xdist broken, skipped: CHECK ME AGAIN)"
env.exe -- python3 -m pip --disable-pip-version-check install gcovr pefile pytest-xdist jsonschema
displayName: pip install gcovr pefile pytest-xdist jsonschema
- script: |
set BOOST_ROOT=
set PATH=%CYGWIN_ROOT%\bin;%SYSTEMROOT%\system32

@ -3075,8 +3075,6 @@ 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)

@ -2,10 +2,6 @@ project('generated assembly', 'c')
cc = meson.get_compiler('c')
if build_machine.system() == 'cygwin'
error('MESON_SKIP_TEST: Cygwin is broken and nobody knows how to fix it. Patches welcome.')
endif
if ['msvc', 'intel-cl'].contains(cc.get_id())
error('MESON_SKIP_TEST: assembly files cannot be compiled directly by the compiler')
endif

@ -1,8 +1,5 @@
#if defined _WIN32
#define DLL_PUBLIC __declspec(dllexport)
#else
#define DLL_PUBLIC __attribute__ ((visibility ("default")))
#endif
#define BUILDING_DLL
#include "cpplib.h"
int DLL_PUBLIC cppfunc(void) {
return 42;

@ -0,0 +1,12 @@
/* See http://gcc.gnu.org/wiki/Visibility#How_to_use_the_new_C.2B-.2B-_visibility_support */
#if defined(_WIN32) || defined(__CYGWIN__)
#ifdef BUILDING_DLL
#define DLL_PUBLIC __declspec(dllexport)
#else
#define DLL_PUBLIC __declspec(dllimport)
#endif
#else
#define DLL_PUBLIC __attribute__ ((visibility ("default")))
#endif
int DLL_PUBLIC cppfunc(void);

@ -1,4 +1,4 @@
int cppfunc(void);
#include "cpplib.h"
int main(void) {
return cppfunc() != 42;

@ -5,10 +5,6 @@ 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

@ -5,10 +5,6 @@ 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')

@ -4,10 +4,6 @@ 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')

@ -4,10 +4,6 @@ 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')

@ -1,9 +1,5 @@
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')

Loading…
Cancel
Save