[KERNEL32_WINETEST]

Disable tests that would hit asserts due to current work on VM. Requested functionality is missing and will be for some time.

svn path=/trunk/; revision=55888
This commit is contained in:
Kamil Hornicek 2012-02-27 19:33:15 +00:00
parent ac6c5a4738
commit f051482d69

View file

@ -298,6 +298,8 @@ static void test_VirtualAlloc(void)
memset( addr1, 0x55, 20 );
ok( *(DWORD *)addr1 == 0x55555555, "wrong data %x\n", *(DWORD *)addr1 );
skip("MEM_RESET is not currently supported\n");
#if 0
addr2 = VirtualAlloc( addr1, 0x1000, MEM_RESET, PAGE_NOACCESS );
ok( addr2 == addr1 || broken( !addr2 && GetLastError() == ERROR_INVALID_PARAMETER), /* win9x */
"VirtualAlloc failed err %u\n", GetLastError() );
@ -323,7 +325,7 @@ static void test_VirtualAlloc(void)
ok( !addr2, "VirtualAlloc failed\n" );
ok( GetLastError() == ERROR_INVALID_ADDRESS, "wrong error %u\n", GetLastError() );
}
#endif
/* invalid protection values */
SetLastError(0xdeadbeef);
addr2 = VirtualAlloc(NULL, 0x1000, MEM_RESERVE, 0);
@ -740,6 +742,8 @@ static void test_MapViewOfFile(void)
ok(info.Type == MEM_MAPPED, "Type should have been MEM_MAPPED instead of 0x%x\n", info.Type);
}
skip("MEM_RESET is not currently supported\n");
#if 0
addr = VirtualAlloc( ptr, MAPPING_SIZE, MEM_RESET, PAGE_READONLY );
ok( addr == ptr || broken(!addr && GetLastError() == ERROR_INVALID_PARAMETER), /* win9x */
"VirtualAlloc failed with error %u\n", GetLastError() );
@ -748,6 +752,7 @@ static void test_MapViewOfFile(void)
ok( !ret || broken(ret) /* win9x */, "VirtualFree succeeded\n" );
if (!ret)
ok( GetLastError() == ERROR_INVALID_PARAMETER, "VirtualFree failed with %u\n", GetLastError() );
#endif
ret = UnmapViewOfFile(ptr2);
ok(ret, "UnmapViewOfFile failed with error %d\n", GetLastError());
@ -1084,6 +1089,8 @@ static void test_IsBadCodePtr(void)
static void test_write_watch(void)
{
skip("test_write_watch - MEM_WRITE_WATCH is currently not supported\n");
#if 0
char *base;
DWORD ret, size, old_prot;
MEMORY_BASIC_INFORMATION info;
@ -1380,6 +1387,7 @@ static void test_write_watch(void)
if (count) ok( results[0] == base + 5*pagesize, "wrong result %p\n", results[0] );
VirtualFree( base, 0, MEM_FREE );
#endif
}
START_TEST(virtual)