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
0b85a740
Commit
0b85a740
authored
Jun 05, 2012
by
Detlef Riekenberg
Committed by
Alexandre Julliard
Jun 06, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
localui/tests: Do not fail when the spooler service was stopped.
parent
1f3eca66
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
localui.c
dlls/localui/tests/localui.c
+11
-4
No files found.
dlls/localui/tests/localui.c
View file @
0b85a740
...
...
@@ -71,7 +71,11 @@ static PORT_INFO_2W * find_portinfo2(LPWSTR pPort)
if
(
!
pi_buffer
)
{
res
=
EnumPortsW
(
NULL
,
2
,
NULL
,
0
,
&
pi_needed
,
&
pi_numports
);
ok
(
!
res
,
"EnumPorts failed: got %d
\n
"
,
res
);
if
(
!
res
&&
(
GetLastError
()
==
RPC_S_SERVER_UNAVAILABLE
))
{
win_skip
(
"The Service 'Spooler' is required for many test
\n
"
);
return
NULL
;
}
ok
(
!
res
,
"EnumPorts succeeded: got %d
\n
"
,
res
);
pi_buffer
=
HeapAlloc
(
GetProcessHeap
(),
0
,
pi_needed
);
res
=
EnumPortsW
(
NULL
,
2
,
pi_buffer
,
pi_needed
,
&
pi_needed
,
&
pi_numports
);
ok
(
res
==
1
,
"EnumPorts failed: got %d
\n
"
,
res
);
...
...
@@ -295,6 +299,12 @@ START_TEST(localui)
/* find installed Ports */
/* "FILE:" */
file_present
=
find_portinfo2
(
portname_fileW
);
if
(
!
pi_numports
)
/* Nothing to test without a port */
return
;
id
=
0
;
/* "LPT1:" - "LPT9:" */
while
(((
lpt_present
==
NULL
)
||
(
lpt_absent
==
NULL
))
&&
id
<
9
)
{
...
...
@@ -317,9 +327,6 @@ START_TEST(localui)
if
(
!
pi2
&&
(
com_absent
==
NULL
))
com_absent
=
strdupW
(
bufferW
);
}
/* "FILE:" */
file_present
=
find_portinfo2
(
portname_fileW
);
test_AddPortUI
();
test_ConfigurePortUI
();
...
...
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