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
603ecd29
Commit
603ecd29
authored
Nov 28, 2006
by
Detlef Riekenberg
Committed by
Alexandre Julliard
Nov 28, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
localspl: Add initial tests for AddPortW.
parent
0e57af88
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
0 deletions
+30
-0
localmon.c
dlls/localspl/tests/localmon.c
+30
-0
No files found.
dlls/localspl/tests/localmon.c
View file @
603ecd29
...
...
@@ -75,6 +75,35 @@ static WCHAR portname_lpt1W[] = {'L','P','T','1',':',0};
/* ########################### */
static
void
test_AddPort
(
void
)
{
DWORD
res
;
/* moved to localui.dll since w2k */
if
(
!
pAddPort
)
return
;
#if 0
/* NT4 crash on this test */
res = pAddPort(NULL, 0, NULL);
#endif
/* Testing-Results (localmon.dll from NT4.0):
- The Servername is ignored
- Case of MonitorName is ignored
*/
SetLastError
(
0xdeadbeef
);
res
=
pAddPort
(
NULL
,
0
,
emptyW
);
ok
(
!
res
,
"returned %d with 0x%x (expected '0')
\n
"
,
res
,
GetLastError
());
SetLastError
(
0xdeadbeef
);
res
=
pAddPort
(
NULL
,
0
,
does_not_existW
);
ok
(
!
res
,
"returned %d with 0x%x (expected '0')
\n
"
,
res
,
GetLastError
());
}
/* ########################### */
static
void
test_ConfigurePort
(
void
)
{
DWORD
res
;
...
...
@@ -319,6 +348,7 @@ START_TEST(localmon)
}
test_InitializePrintMonitor
();
test_AddPort
();
test_ConfigurePort
();
test_DeletePort
();
test_EnumPorts
();
...
...
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