Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
fa56de2c
Commit
fa56de2c
authored
Feb 20, 2016
by
Frédéric Delanoy
Committed by
Alexandre Julliard
Feb 22, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/tests: Use todo_wine_if() in tests.
Signed-off-by:
Frédéric Delanoy
<
frederic.delanoy@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
9f23eae5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
21 deletions
+9
-21
listbox.c
dlls/user32/tests/listbox.c
+1
-2
msg.c
dlls/user32/tests/msg.c
+1
-6
win.c
dlls/user32/tests/win.c
+7
-13
No files found.
dlls/user32/tests/listbox.c
View file @
fa56de2c
...
...
@@ -125,8 +125,7 @@ keypress (HWND handle, WPARAM keycode, BYTE scancode, BOOL extended)
t.s.f, got.f)
#define listbox_todo_field_ok(t, s, f, got) \
if (t.s##_todo.f) todo_wine { listbox_field_ok(t, s, f, got); } \
else listbox_field_ok(t, s, f, got)
todo_wine_if (t.s##_todo.f) { listbox_field_ok(t, s, f, got); }
#define listbox_ok(t, s, got) \
listbox_todo_field_ok(t, s, selected, got); \
...
...
dlls/user32/tests/msg.c
View file @
fa56de2c
...
...
@@ -13985,12 +13985,7 @@ static void test_WaitForInputIdle( char *argv0 )
broken
(
ret
==
wait_idle_expect
[
i
].
broken
),
"%u: WaitForInputIdle error %08x expected %08x
\n
"
,
i
,
ret
,
wait_idle_expect
[
i
].
exp
);
else
if
(
wait_idle_expect
[
i
].
todo
)
todo_wine
ok
(
ret
==
wait_idle_expect
[
i
].
exp
||
broken
(
ret
==
wait_idle_expect
[
i
].
broken
),
"%u: WaitForInputIdle error %08x expected %08x
\n
"
,
i
,
ret
,
wait_idle_expect
[
i
].
exp
);
else
else
todo_wine_if
(
wait_idle_expect
[
i
].
todo
)
ok
(
ret
==
wait_idle_expect
[
i
].
exp
||
broken
(
ret
==
wait_idle_expect
[
i
].
broken
),
"%u: WaitForInputIdle error %08x expected %08x
\n
"
,
i
,
ret
,
wait_idle_expect
[
i
].
exp
);
...
...
dlls/user32/tests/win.c
View file @
fa56de2c
...
...
@@ -4179,10 +4179,8 @@ static void check_window_style(DWORD dwStyleIn, DWORD dwExStyleIn, DWORD dwStyle
dwExStyleOut
=
dwExStyleIn
&
~
WS_EX_WINDOWEDGE
;
ok
(
dwActualStyle
==
dwStyleOut
,
"expected style %#x, got %#x
\n
"
,
dwStyleOut
,
dwActualStyle
);
/* FIXME: Remove the condition below once Wine is fixed */
if
(
dwActualExStyle
!=
dwExStyleOut
)
todo_wine
ok
(
dwActualExStyle
==
dwExStyleOut
,
"expected ex_style %#x, got %#x
\n
"
,
dwExStyleOut
,
dwActualExStyle
);
else
ok
(
dwActualExStyle
==
dwExStyleOut
,
"expected ex_style %#x, got %#x
\n
"
,
dwExStyleOut
,
dwActualExStyle
);
todo_wine_if
(
dwActualExStyle
!=
dwExStyleOut
)
ok
(
dwActualExStyle
==
dwExStyleOut
,
"expected ex_style %#x, got %#x
\n
"
,
dwExStyleOut
,
dwActualExStyle
);
DestroyWindow
(
hwnd
);
if
(
hwndParent
)
DestroyWindow
(
hwndParent
);
...
...
@@ -4309,10 +4307,8 @@ static void check_dialog_style(DWORD style_in, DWORD ex_style_in, DWORD style_ou
else
ex_style_out
=
ex_style_in
&
~
WS_EX_WINDOWEDGE
;
/* FIXME: Remove the condition below once Wine is fixed */
if
(
ex_style
!=
ex_style_out
)
todo_wine
ok
(
ex_style
==
ex_style_out
,
"expected ex_style %#x, got %#x
\n
"
,
ex_style_out
,
ex_style
);
else
ok
(
ex_style
==
ex_style_out
,
"expected ex_style %#x, got %#x
\n
"
,
ex_style_out
,
ex_style
);
todo_wine_if
(
ex_style
!=
ex_style_out
)
ok
(
ex_style
==
ex_style_out
,
"expected ex_style %#x, got %#x
\n
"
,
ex_style_out
,
ex_style
);
DestroyWindow
(
hwnd
);
DestroyWindow
(
parent
);
...
...
@@ -5001,8 +4997,8 @@ static void zero_parentdc_test(struct parentdc_test *t)
t.w.r.f, got.w.r.f)
#define parentdc_todo_field_ok(t, w, r, f, got) \
if (t.w##_todo.r.f) todo_wine { parentdc_field_ok(t, w, r, f, got); }
\
else parentdc_field_ok(t, w, r, f, got)
todo_wine_if (t.w##_todo.r.f)
\
parentdc_field_ok(t, w, r, f, got);
#define parentdc_rect_ok(t, w, r, got) \
parentdc_todo_field_ok(t, w, r, left, got); \
...
...
@@ -6423,9 +6419,7 @@ static void run_NCRedrawLoop(UINT flags)
DispatchMessageA
(
&
msg
);
MsgWaitForMultipleObjects
(
0
,
NULL
,
FALSE
,
100
,
QS_ALLINPUT
);
}
if
(
flags
==
(
RDW_INVALIDATE
|
RDW_FRAME
))
todo_wine
ok
(
loopcount
<
100
,
"Detected infinite WM_PAINT loop (%x).
\n
"
,
flags
);
else
todo_wine_if
(
flags
==
(
RDW_INVALIDATE
|
RDW_FRAME
))
ok
(
loopcount
<
100
,
"Detected infinite WM_PAINT loop (%x).
\n
"
,
flags
);
DestroyWindow
(
hwnd
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment