kernel32: Factor out the VerifyVersionInfo tests into their own function.
This commit is contained in:
parent
571a383d7e
commit
ea41e863ad
|
@ -89,18 +89,13 @@ static void test_GetVersionEx(void)
|
||||||
ok(ret, "Expected GetVersionExA to succeed\n");
|
ok(ret, "Expected GetVersionExA to succeed\n");
|
||||||
ok(GetLastError() == 0xdeadbeef,
|
ok(GetLastError() == 0xdeadbeef,
|
||||||
"Expected 0xdeadbeef, got %d\n", GetLastError());
|
"Expected 0xdeadbeef, got %d\n", GetLastError());
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
START_TEST(version)
|
static void test_VerifyVersionInfo(void)
|
||||||
{
|
{
|
||||||
OSVERSIONINFOEX info = { sizeof(info) };
|
OSVERSIONINFOEX info = { sizeof(info) };
|
||||||
BOOL ret;
|
BOOL ret;
|
||||||
|
|
||||||
init_function_pointers();
|
|
||||||
|
|
||||||
test_GetVersionEx();
|
|
||||||
|
|
||||||
if(!pVerifyVersionInfoA || !pVerSetConditionMask)
|
if(!pVerifyVersionInfoA || !pVerSetConditionMask)
|
||||||
{
|
{
|
||||||
skip("Needed functions not available\n");
|
skip("Needed functions not available\n");
|
||||||
|
@ -237,3 +232,11 @@ START_TEST(version)
|
||||||
pVerSetConditionMask(0, VER_MAJORVERSION, VER_GREATER_EQUAL));
|
pVerSetConditionMask(0, VER_MAJORVERSION, VER_GREATER_EQUAL));
|
||||||
ok(ret, "VerifyVersionInfoA failed with error %d\n", GetLastError());
|
ok(ret, "VerifyVersionInfoA failed with error %d\n", GetLastError());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
START_TEST(version)
|
||||||
|
{
|
||||||
|
init_function_pointers();
|
||||||
|
|
||||||
|
test_GetVersionEx();
|
||||||
|
test_VerifyVersionInfo();
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue