Commit ea41e863 authored by James Hawkins's avatar James Hawkins Committed by Alexandre Julliard

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

parent 571a383d
......@@ -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();
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment