tests: Allow skipping DXC tests at runtime.

This commit is contained in:
Giovanni Mascellani 2024-04-20 14:12:19 +02:00 committed by Alexandre Julliard
parent 079f8e4d52
commit 53fd1a95fc
Notes: Alexandre Julliard 2024-04-22 23:38:29 +02:00
Approved-by: Giovanni Mascellani (@giomasce)
Approved-by: Henri Verbeet (@hverbeet)
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/810

View File

@ -2088,9 +2088,13 @@ static IDxcCompiler3 *dxcompiler_create(void)
{ {
DxcCreateInstanceProc create_instance; DxcCreateInstanceProc create_instance;
IDxcCompiler3 *compiler; IDxcCompiler3 *compiler;
const char *skip_dxc;
HRESULT hr; HRESULT hr;
void *dll; void *dll;
if ((skip_dxc = getenv("VKD3D_TESTS_SKIP_DXC")) && strcmp(skip_dxc, "") != 0)
return NULL;
dll = vkd3d_dlopen(SONAME_LIBDXCOMPILER); dll = vkd3d_dlopen(SONAME_LIBDXCOMPILER);
ok(dll, "Failed to load dxcompiler library, %s.\n", vkd3d_dlerror()); ok(dll, "Failed to load dxcompiler library, %s.\n", vkd3d_dlerror());
if (!dll) if (!dll)