Commit 85c52b39 authored by Alexandre Julliard's avatar Alexandre Julliard

ntdll/tests: Fix a couple of test failures on older Windows versions.

parent 80898bfe
...@@ -1740,7 +1740,8 @@ static void test_query_process_image_info(void) ...@@ -1740,7 +1740,8 @@ static void test_query_process_image_info(void)
ok( info.MinorSubsystemVersion == nt->OptionalHeader.MinorSubsystemVersion, ok( info.MinorSubsystemVersion == nt->OptionalHeader.MinorSubsystemVersion,
"wrong minor version %x/%x\n", "wrong minor version %x/%x\n",
info.MinorSubsystemVersion, nt->OptionalHeader.MinorSubsystemVersion ); info.MinorSubsystemVersion, nt->OptionalHeader.MinorSubsystemVersion );
ok( info.MajorOperatingSystemVersion == nt->OptionalHeader.MajorOperatingSystemVersion, ok( info.MajorOperatingSystemVersion == nt->OptionalHeader.MajorOperatingSystemVersion ||
broken( !info.MajorOperatingSystemVersion ), /* <= win8 */
"wrong major OS version %x/%x\n", "wrong major OS version %x/%x\n",
info.MajorOperatingSystemVersion, nt->OptionalHeader.MajorOperatingSystemVersion ); info.MajorOperatingSystemVersion, nt->OptionalHeader.MajorOperatingSystemVersion );
ok( info.MinorOperatingSystemVersion == nt->OptionalHeader.MinorOperatingSystemVersion, ok( info.MinorOperatingSystemVersion == nt->OptionalHeader.MinorOperatingSystemVersion,
...@@ -2752,7 +2753,8 @@ static void test_wow64(void) ...@@ -2752,7 +2753,8 @@ static void test_wow64(void)
} }
#endif #endif
ok( !NtCurrentTeb()->GdiBatchCount, "GdiBatchCount set to %x\n", NtCurrentTeb()->GdiBatchCount ); ok( !NtCurrentTeb()->GdiBatchCount, "GdiBatchCount set to %x\n", NtCurrentTeb()->GdiBatchCount );
ok( !NtCurrentTeb()->WowTebOffset, "WowTebOffset set to %x\n", NtCurrentTeb()->WowTebOffset ); ok( !NtCurrentTeb()->WowTebOffset || broken( NtCurrentTeb()->WowTebOffset == 1 ), /* vista */
"WowTebOffset set to %x\n", NtCurrentTeb()->WowTebOffset );
} }
static void test_debug_object(void) static void test_debug_object(void)
......
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