Alfred Agrell (@Alcaro) commented about dlls/d3dcompiler_43/tests/hlsl_d3d9.c:
+ "{\n" + " return LIGHT;\n" + "}"; + static const char include1[] = + "#define LIGHT 1\n"; + + create_directory(L"sources"); + create_file(L"sources\\source.ps", ps_code, strlen(ps_code), filename); + create_file(L"sources\\include1.h", include1, strlen(include1), NULL); + + GetCurrentDirectoryW(MAX_PATH, directory); + SetCurrentDirectoryW(temp_dir); + + hr = D3DCompileFromFile(L"sources/source.ps", NULL, D3D_COMPILE_STANDARD_FILE_INCLUDE, "main", "ps_2_0", 0, 0, &blob, &errors); + ok(hr == S_OK, "Got unexpected hr %#lx.\n", hr); + ok(!!blob, "Got unexpected blob.\n"); Shouldn't that be 'Got unexpected lack of blob' or something?
Probably copypasted from some other test, feel free to change there too. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/10662#note_136213