Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
a3512ab8
Commit
a3512ab8
authored
Apr 24, 2008
by
Paul Vriens
Committed by
Alexandre Julliard
Apr 24, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/tests: Skip tests if function is not implemented.
parent
27fd7c1b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
broadcast.c
dlls/user32/tests/broadcast.c
+8
-3
No files found.
dlls/user32/tests/broadcast.c
View file @
a3512ab8
...
@@ -95,7 +95,7 @@ static BOOL init_procs(void)
...
@@ -95,7 +95,7 @@ static BOOL init_procs(void)
return
TRUE
;
return
TRUE
;
}
}
static
void
test_parameters
(
PBROADCAST
broadcast
)
static
void
test_parameters
(
PBROADCAST
broadcast
,
const
char
*
functionname
)
{
{
LONG
ret
;
LONG
ret
;
DWORD
recips
;
DWORD
recips
;
...
@@ -103,6 +103,11 @@ static void test_parameters(PBROADCAST broadcast)
...
@@ -103,6 +103,11 @@ static void test_parameters(PBROADCAST broadcast)
SetLastError
(
0xcafebabe
);
SetLastError
(
0xcafebabe
);
recips
=
BSM_APPLICATIONS
;
recips
=
BSM_APPLICATIONS
;
ret
=
broadcast
(
0x80000000
,
&
recips
,
WM_NULL
,
0
,
0
);
ret
=
broadcast
(
0x80000000
,
&
recips
,
WM_NULL
,
0
,
0
);
if
(
!
ret
&&
GetLastError
()
==
ERROR_CALL_NOT_IMPLEMENTED
)
{
skip
(
"%s is not implemented
\n
"
,
functionname
);
return
;
}
ok
(
GetLastError
()
==
ERROR_INVALID_PARAMETER
,
"Last error: %08x
\n
"
,
GetLastError
());
ok
(
GetLastError
()
==
ERROR_INVALID_PARAMETER
,
"Last error: %08x
\n
"
,
GetLastError
());
ok
(
!
ret
,
"Returned: %d
\n
"
,
ret
);
ok
(
!
ret
,
"Returned: %d
\n
"
,
ret
);
...
@@ -321,11 +326,11 @@ START_TEST(broadcast)
...
@@ -321,11 +326,11 @@ START_TEST(broadcast)
return
;
return
;
trace
(
"Running BroadcastSystemMessageA tests
\n
"
);
trace
(
"Running BroadcastSystemMessageA tests
\n
"
);
test_parameters
(
pBroadcastA
);
test_parameters
(
pBroadcastA
,
"BroadcastSystemMessageA"
);
if
(
pBroadcastW
)
if
(
pBroadcastW
)
{
{
trace
(
"Running BroadcastSystemMessageW tests
\n
"
);
trace
(
"Running BroadcastSystemMessageW tests
\n
"
);
test_parameters
(
pBroadcastW
);
test_parameters
(
pBroadcastW
,
"BroadcastSystemMessageW"
);
}
}
else
else
skip
(
"No BroadcastSystemMessageW, skipping
\n
"
);
skip
(
"No BroadcastSystemMessageW, skipping
\n
"
);
...
...
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