kernel32: Factor out the VerifyVersionInfo tests into their own function.

This commit is contained in:
James Hawkins 2008-02-04 11:18:52 -06:00 committed by Alexandre Julliard
parent 571a383d7e
commit ea41e863ad
1 changed files with 9 additions and 6 deletions

View File

@ -89,18 +89,13 @@ static void test_GetVersionEx(void)
ok(ret, "Expected GetVersionExA to succeed\n");
ok(GetLastError() == 0xdeadbeef,
"Expected 0xdeadbeef, got %d\n", GetLastError());
}
START_TEST(version)
static void test_VerifyVersionInfo(void)
{
OSVERSIONINFOEX info = { sizeof(info) };
BOOL ret;
init_function_pointers();
test_GetVersionEx();
if(!pVerifyVersionInfoA || !pVerSetConditionMask)
{
skip("Needed functions not available\n");
@ -237,3 +232,11 @@ START_TEST(version)
pVerSetConditionMask(0, VER_MAJORVERSION, VER_GREATER_EQUAL));
ok(ret, "VerifyVersionInfoA failed with error %d\n", GetLastError());
}
START_TEST(version)
{
init_function_pointers();
test_GetVersionEx();
test_VerifyVersionInfo();
}