[PATCH 4/5] d3drm: Add some tests

Christian Costa titan.costa at wanadoo.fr
Wed Feb 3 01:50:05 CST 2010


Paul Vriens a écrit :
>
> 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?
>
Just submitted patches should help with this problem.

Christian





More information about the wine-devel mailing list