mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
tests: Allow skipping DXC tests at runtime.
This commit is contained in:
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
@ -2088,9 +2088,13 @@ static IDxcCompiler3 *dxcompiler_create(void)
|
||||
{
|
||||
DxcCreateInstanceProc create_instance;
|
||||
IDxcCompiler3 *compiler;
|
||||
const char *skip_dxc;
|
||||
HRESULT hr;
|
||||
void *dll;
|
||||
|
||||
if ((skip_dxc = getenv("VKD3D_TESTS_SKIP_DXC")) && strcmp(skip_dxc, "") != 0)
|
||||
return NULL;
|
||||
|
||||
dll = vkd3d_dlopen(SONAME_LIBDXCOMPILER);
|
||||
ok(dll, "Failed to load dxcompiler library, %s.\n", vkd3d_dlerror());
|
||||
if (!dll)
|
||||
|
Loading…
Reference in New Issue
Block a user