Module: wine Branch: master Commit: 74559aaa7f44dd5e281df5add62d1f6bcfc074fe URL: https://gitlab.winehq.org/wine/wine/-/commit/74559aaa7f44dd5e281df5add62d1f6...
Author: Alexandre Julliard julliard@winehq.org Date: Wed Sep 20 13:49:10 2023 +0200
kernel32/tests: Comment out one more test that can crash on Windows.
---
dlls/kernel32/tests/heap.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/dlls/kernel32/tests/heap.c b/dlls/kernel32/tests/heap.c index 24ce6b792da..d05eac33174 100644 --- a/dlls/kernel32/tests/heap.c +++ b/dlls/kernel32/tests/heap.c @@ -264,6 +264,9 @@ static void test_HeapCreate(void) ptr1 = HeapReAlloc( heap, 0, (void *)0xdeadbe00, 1 ); ok( !ptr1, "HeapReAlloc succeeded\n" ); ok( GetLastError() == ERROR_NOACCESS, "got error %lu\n", GetLastError() ); + ret = HeapValidate( heap, 0, (void *)0xdeadbe00 ); + ok( !ret, "HeapValidate succeeded\n" ); + ok( GetLastError() == ERROR_NOACCESS, "got error %lu\n", GetLastError() ); SetLastError( 0xdeadbeef ); ptr = (BYTE *)((UINT_PTR)buffer & ~63) + 64; ptr1 = HeapReAlloc( heap, 0, ptr, 1 ); @@ -275,12 +278,6 @@ static void test_HeapCreate(void) ret = HeapValidate( heap, 0, NULL ); ok( ret, "HeapValidate failed, error %lu\n", GetLastError() ); ok( GetLastError() == 0xdeadbeef, "got error %lu\n", GetLastError() ); - SetLastError( 0xdeadbeef ); - ret = HeapValidate( heap, 0, (void *)0xdeadbe00 ); - ok( !ret, "HeapValidate succeeded\n" ); - todo_wine - ok( GetLastError() == ERROR_NOACCESS, "got error %lu\n", GetLastError() ); - SetLastError( 0xdeadbeef ); ptr = (BYTE *)((UINT_PTR)buffer & ~63) + 64; ret = HeapValidate( heap, 0, ptr ); ok( !ret, "HeapValidate succeeded\n" );