Alexandre Julliard : user32/tests: Remove a crashing test.
Alexandre Julliard
julliard at winehq.org
Fri Dec 30 10:26:54 CST 2011
Module: wine
Branch: master
Commit: f6ccb2c498f79099d1291d3c706944f846c7e530
URL: http://source.winehq.org/git/wine.git/?a=commit;h=f6ccb2c498f79099d1291d3c706944f846c7e530
Author: Alexandre Julliard <julliard at winehq.org>
Date: Fri Dec 30 10:17:00 2011 +0100
user32/tests: Remove a crashing test.
---
dlls/user32/tests/msg.c | 27 ---------------------------
1 files changed, 0 insertions(+), 27 deletions(-)
diff --git a/dlls/user32/tests/msg.c b/dlls/user32/tests/msg.c
index bde0023..1a02e02 100644
--- a/dlls/user32/tests/msg.c
+++ b/dlls/user32/tests/msg.c
@@ -8134,12 +8134,6 @@ static VOID CALLBACK tfunc(HWND hwnd, UINT uMsg, UINT_PTR id, DWORD dwTime)
{
}
-static VOID CALLBACK tfunc_crash(HWND hwnd, UINT uMsg, UINT_PTR id, DWORD dwTime)
-{
- /* Crash on purpose */
- *(volatile int *)0 = 2;
-}
-
#define TIMER_ID 0x19
static DWORD WINAPI timer_thread_proc(LPVOID x)
@@ -8161,7 +8155,6 @@ static void test_timers(void)
{
struct timer_info info;
DWORD id;
- MSG msg;
info.hWnd = CreateWindow ("TestWindowClass", NULL,
WS_OVERLAPPEDWINDOW ,
@@ -8184,26 +8177,6 @@ static void test_timers(void)
ok( KillTimer(info.hWnd, TIMER_ID), "KillTimer failed\n");
ok(DestroyWindow(info.hWnd), "failed to destroy window\n");
-
- /* Test timer callback with crash */
- SetLastError(0xdeadbeef);
- info.hWnd = CreateWindowW(testWindowClassW, NULL,
- WS_OVERLAPPEDWINDOW ,
- CW_USEDEFAULT, CW_USEDEFAULT, 300, 300, 0,
- NULL, NULL, 0);
- if ((!info.hWnd && GetLastError() == ERROR_CALL_NOT_IMPLEMENTED) || /* Win9x/Me */
- (!pGetMenuInfo)) /* Win95/NT4 */
- {
- win_skip("Test would crash on Win9x/WinMe/NT4\n");
- DestroyWindow(info.hWnd);
- return;
- }
- info.id = SetTimer(info.hWnd, TIMER_ID, 0, tfunc_crash);
- ok(info.id, "SetTimer failed\n");
- Sleep(150);
- while (PeekMessage(&msg, NULL, 0, 0, PM_REMOVE)) DispatchMessage(&msg);
-
- ok(DestroyWindow(info.hWnd), "failed to destroy window\n");
}
static int count = 0;
More information about the wine-cvs
mailing list