Skip to content

Commit

Permalink
Skip test 'common/121 shared modules' on Windows UWP
Browse files Browse the repository at this point in the history
  • Loading branch information
jon-turney authored and nirbheek committed Sep 11, 2020
1 parent 77930d8 commit 1d5fef8
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion test cases/common/121 shared module/meson.build
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 1d5fef8

Please sign in to comment.