diff options
author | Jon Turney <jon.turney@dronecode.org.uk> | 2020-01-24 01:38:29 +0000 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek.chauhan@gmail.com> | 2020-09-11 20:45:09 +0000 |
commit | 1d5fef89f004cb4b95c7d8603090c91b6135bddb (patch) | |
tree | 0dde91a7b2b91cfda8fe317622b468b14927e1cc | |
parent | 77930d80c3fd6b5c71b676a96ac2a18b6aff77a1 (diff) | |
download | meson-1d5fef89f004cb4b95c7d8603090c91b6135bddb.zip meson-1d5fef89f004cb4b95c7d8603090c91b6135bddb.tar.gz meson-1d5fef89f004cb4b95c7d8603090c91b6135bddb.tar.bz2 |
Skip test 'common/121 shared modules' on Windows UWP
-rw-r--r-- | test cases/common/121 shared module/meson.build | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/test cases/common/121 shared module/meson.build b/test cases/common/121 shared module/meson.build index 5d7fed9..936c839 100644 --- a/test cases/common/121 shared module/meson.build +++ b/test cases/common/121 shared module/meson.build @@ -1,6 +1,24 @@ project('shared module', 'c') -dl = meson.get_compiler('c').find_library('dl', required : false) +c = meson.get_compiler('c') + +# Windows UWP doesn't support the ToolHelp API we use in this test to emulate +# runtime symbol resolution. +if host_machine.system() == 'windows' + if not c.compiles(''' +#include <windows.h> +#include <tlhelp32.h> + +HANDLE func(void) +{ + return CreateToolhelp32Snapshot(TH32CS_SNAPMODULE, 0); +} +''') + error('MESON_SKIP_TEST Windows UWP does not support this test.') + endif +endif + +dl = c.find_library('dl', required : false) l = shared_library('runtime', 'runtime.c') # Do NOT link the module with the runtime library. This # is a common approach for plugins that are only used |