From 1d5fef89f004cb4b95c7d8603090c91b6135bddb Mon Sep 17 00:00:00 2001 From: Jon Turney Date: Fri, 24 Jan 2020 01:38:29 +0000 Subject: Skip test 'common/121 shared modules' on Windows UWP --- test cases/common/121 shared module/meson.build | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) (limited to 'test cases/common') 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 +#include + +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 -- cgit v1.1