d3d8/tests: Warn that tests were skipped if we could not load d3d8.dll.

But report a failed test if a mandatory function is missing from it.
This commit is contained in:
Francois Gouget 2007-01-11 15:38:11 +01:00 committed by Alexandre Julliard
parent 354b9e7aae
commit a76e6b11b0
5 changed files with 13 additions and 3 deletions

View File

@ -107,7 +107,11 @@ START_TEST(d3d8_main)
{
HMODULE d3d8_handle = LoadLibraryA( "d3d8.dll" );
if (!d3d8_handle)
{
skip("Could not load d3d8.dll\n");
return;
}
ValidateVertexShader = (void*)GetProcAddress (d3d8_handle, "ValidateVertexShader" );
ValidatePixelShader = (void*)GetProcAddress (d3d8_handle, "ValidatePixelShader" );
test_ValidateVertexShader();

View File

@ -763,8 +763,14 @@ static void test_display_modes(void)
START_TEST(device)
{
HMODULE d3d8_handle = LoadLibraryA( "d3d8.dll" );
if (!d3d8_handle)
{
skip("Could not load d3d8.dll\n");
return;
}
pDirect3DCreate8 = (void *)GetProcAddress( d3d8_handle, "Direct3DCreate8" );
ok(pDirect3DCreate8 != NULL, "Failed to get address of Direct3DCreate8\n");
if (pDirect3DCreate8)
{
test_display_modes();

View File

@ -129,7 +129,7 @@ START_TEST(surface)
d3d8_handle = LoadLibraryA("d3d8.dll");
if (!d3d8_handle)
{
trace("Could not load d3d8.dll, skipping tests\n");
skip("Could not load d3d8.dll\n");
return;
}

View File

@ -110,7 +110,7 @@ START_TEST(texture)
d3d8_handle = LoadLibraryA("d3d8.dll");
if (!d3d8_handle)
{
trace("Could not load d3d8.dll, skipping tests\n");
skip("Could not load d3d8.dll\n");
return;
}

View File

@ -129,7 +129,7 @@ START_TEST(volume)
d3d8_handle = LoadLibraryA("d3d8.dll");
if (!d3d8_handle)
{
trace("Could not load d3d8.dll, skipping tests\n");
skip("Could not load d3d8.dll\n");
return;
}