mirror of
https://github.com/reactos/wine.git
synced 2025-03-03 02:05:48 +00:00
user32/tests: Remove side effects from assert()s.
This commit is contained in:
parent
0bd04d40cf
commit
b853ddc40b
@ -1523,10 +1523,14 @@ static void test_MDI_child_stack(HWND mdi_client)
|
||||
cs.style = 0;
|
||||
cs.lParam = (LPARAM)mdi_lParam_test_message;
|
||||
|
||||
assert(child_1 = (HWND)SendMessageA(mdi_client, WM_MDICREATE, 0, (LPARAM)&cs));
|
||||
assert(child_2 = (HWND)SendMessageA(mdi_client, WM_MDICREATE, 0, (LPARAM)&cs));
|
||||
assert(child_3 = (HWND)SendMessageA(mdi_client, WM_MDICREATE, 0, (LPARAM)&cs));
|
||||
assert(child_4 = (HWND)SendMessageA(mdi_client, WM_MDICREATE, 0, (LPARAM)&cs));
|
||||
child_1 = (HWND)SendMessageA(mdi_client, WM_MDICREATE, 0, (LPARAM)&cs);
|
||||
ok(child_1 != 0, "expected child_1 to be non NULL");
|
||||
child_2 = (HWND)SendMessageA(mdi_client, WM_MDICREATE, 0, (LPARAM)&cs);
|
||||
ok(child_2 != 0, "expected child_2 to be non NULL");
|
||||
child_3 = (HWND)SendMessageA(mdi_client, WM_MDICREATE, 0, (LPARAM)&cs);
|
||||
ok(child_3 != 0, "expected child_3 to be non NULL");
|
||||
child_4 = (HWND)SendMessageA(mdi_client, WM_MDICREATE, 0, (LPARAM)&cs);
|
||||
ok(child_4 != 0, "expected child_4 to be non NULL");
|
||||
|
||||
stack[0] = (HWND)SendMessageA(mdi_client, WM_MDIGETACTIVE, 0, 0);
|
||||
stack[1] = GetWindow(stack[0], GW_HWNDNEXT);
|
||||
|
Loading…
x
Reference in New Issue
Block a user