[PATCH 4/5] d3drm: Add some tests

Paul Vriens paul.vriens.wine at gmail.com
Tue Feb 2 02:19:50 CST 2010


On 02/01/2010 10:10 PM, Christian Costa wrote:
> Paul Vriens a écrit :
>>
>> On 02/01/2010 08:56 AM, Stefan Dösinger wrote:
>>> On Monday 01 February 2010 08:18:42 Christian Costa wrote:
>>>> +void Test(void)
>>>> +{
>>>> ...
>>>> Test();
>>> I think the function name Test() won't be too helpful once more tests
>>> are
>>> added. You can also make it static, unless you plan to call it from
>>> another .c
>>> file.
>>>
>>>
>>
>> +#define D3DRM_GET_PROC(func) \
>> + p ## func = (void*)GetProcAddress(d3drm_handle, #func); \
>> + if(!p ## func) { \
>> + trace("GetProcAddress(%s) failed\n", #func); \
>>
>> A win_skip() would probably be better here.
>>
>> + FreeLibrary(d3drm_handle); \
>> + return FALSE; \
>> + }
>> +
>> +static BOOL InitFunctionPtrs(void)
>> +{
>> + d3drm_handle = LoadLibraryA("d3drm.dll");
>> +
>> + if(!d3drm_handle)
>> + {
>> + skip("Could not load d3drm.dll\n");
>>
>> And here as well.
>>
> Well. It comes from vector.c. I never use win_skip so far but I can take
> a look at it. Thanks.
>
>

While you are at it. This patch introduces a test failure on NT4:

http://test.winehq.org/data/tests/d3drm:d3drm.html

Could you have a look?

-- 
Cheers,

Paul.



More information about the wine-devel mailing list