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
0d1de51a
Commit
0d1de51a
authored
May 28, 2007
by
Detlef Riekenberg
Committed by
Alexandre Julliard
May 29, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
localui/tests: Handle different results from XP.
parent
c83fd812
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
29 deletions
+37
-29
localui.c
dlls/localui/tests/localui.c
+37
-29
No files found.
dlls/localui/tests/localui.c
View file @
0d1de51a
...
...
@@ -137,21 +137,24 @@ static void test_AddPortUI(void)
SetLastError
(
0xdeadbeef
);
res
=
pAddPortUI
(
NULL
,
NULL
,
NULL
,
NULL
);
ok
(
!
res
&&
(
GetLastError
()
==
ERROR_UNKNOWN_PORT
),
"got %d with %u (expected '0' with ERROR_UNKNOWN_PORT)
\n
"
,
res
,
GetLastError
());
ok
(
!
res
&&
((
GetLastError
()
==
ERROR_UNKNOWN_PORT
)
||
(
GetLastError
()
==
ERROR_INVALID_PRINTER_NAME
)),
"got %d with %u (expected '0' with: ERROR_UNKNOWN_PORT or "
"ERROR_INVALID_PRINTER_NAME)
\n
"
,
res
,
GetLastError
());
SetLastError
(
0xdeadbeef
);
res
=
pAddPortUI
(
NULL
,
NULL
,
emptyW
,
NULL
);
ok
(
!
res
&&
(
GetLastError
()
==
ERROR_UNKNOWN_PORT
),
"got %d with %u (expected '0' with ERROR_UNKNOWN_PORT)
\n
"
,
res
,
GetLastError
());
ok
(
!
res
&&
((
GetLastError
()
==
ERROR_UNKNOWN_PORT
)
||
(
GetLastError
()
==
ERROR_INVALID_PRINTER_NAME
)),
"got %d with %u (expected '0' with: ERROR_UNKNOWN_PORT or "
"ERROR_INVALID_PRINTER_NAME)
\n
"
,
res
,
GetLastError
());
SetLastError
(
0xdeadbeef
);
res
=
pAddPortUI
(
NULL
,
NULL
,
does_not_existW
,
NULL
);
ok
(
!
res
&&
(
GetLastError
()
==
ERROR_UNKNOWN_PORT
),
"got %d with %u (expected '0' with ERROR_UNKNOWN_PORT)
\n
"
,
res
,
GetLastError
());
ok
(
!
res
&&
((
GetLastError
()
==
ERROR_UNKNOWN_PORT
)
||
(
GetLastError
()
==
ERROR_INVALID_PRINTER_NAME
)),
"got %d with %u (expected '0' with: ERROR_UNKNOWN_PORT or "
"ERROR_INVALID_PRINTER_NAME)
\n
"
,
res
,
GetLastError
());
if
(
winetest_interactive
)
{
SetLastError
(
0xdeadbeef
);
...
...
@@ -191,24 +194,25 @@ static void test_ConfigurePortUI(void)
SetLastError
(
0xdeadbeef
);
res
=
pConfigurePortUI
(
NULL
,
NULL
,
NULL
);
ok
(
!
res
&&
(
GetLastError
()
==
ERROR_UNKNOWN_PORT
),
"got %d with %u (expected '0' with ERROR_UNKNOWN_PORT)
\n
"
,
res
,
GetLastError
());
ok
(
!
res
&&
((
GetLastError
()
==
ERROR_UNKNOWN_PORT
)
||
(
GetLastError
()
==
ERROR_INVALID_PRINTER_NAME
))
,
"got %d with %u (expected '0' with: ERROR_UNKNOWN_PORT or "
"ERROR_INVALID_PRINTER_NAME)
\n
"
,
res
,
GetLastError
());
SetLastError
(
0xdeadbeef
);
res
=
pConfigurePortUI
(
NULL
,
NULL
,
emptyW
);
ok
(
!
res
&&
(
GetLastError
()
==
ERROR_UNKNOWN_PORT
),
"got %d with %u (expected '0' with ERROR_UNKNOWN_PORT)
\n
"
,
res
,
GetLastError
());
ok
(
!
res
&&
((
GetLastError
()
==
ERROR_UNKNOWN_PORT
)
||
(
GetLastError
()
==
ERROR_INVALID_PRINTER_NAME
)),
"got %d with %u (expected '0' with: ERROR_UNKNOWN_PORT or "
"ERROR_INVALID_PRINTER_NAME)
\n
"
,
res
,
GetLastError
());
SetLastError
(
0xdeadbeef
);
res
=
pConfigurePortUI
(
NULL
,
NULL
,
does_not_existW
);
ok
(
!
res
&&
(
GetLastError
()
==
ERROR_UNKNOWN_PORT
),
"got %d with %u (expected '0' with ERROR_UNKNOWN_PORT)
\n
"
,
res
,
GetLastError
());
ok
(
!
res
&&
((
GetLastError
()
==
ERROR_UNKNOWN_PORT
)
||
(
GetLastError
()
==
ERROR_INVALID_PRINTER_NAME
))
,
"got %d with %u (expected '0' with: ERROR_UNKNOWN_PORT or "
"ERROR_INVALID_PRINTER_NAME)
\n
"
,
res
,
GetLastError
());
if
(
winetest_interactive
&&
lpt_present
)
{
SetLastError
(
0xdeadbeef
);
...
...
@@ -222,9 +226,10 @@ static void test_ConfigurePortUI(void)
if
(
lpt_absent
)
{
SetLastError
(
0xdeadbeef
);
res
=
pConfigurePortUI
(
NULL
,
NULL
,
lpt_absent
);
ok
(
!
res
&&
(
GetLastError
()
==
ERROR_UNKNOWN_PORT
),
"got %d with %u (expected '0' with ERROR_UNKNOWN_PORT)
\n
"
,
res
,
GetLastError
());
ok
(
!
res
&&
((
GetLastError
()
==
ERROR_UNKNOWN_PORT
)
||
(
GetLastError
()
==
ERROR_INVALID_PRINTER_NAME
)),
"got %d with %u (expected '0' with: ERROR_UNKNOWN_PORT or "
"ERROR_INVALID_PRINTER_NAME)
\n
"
,
res
,
GetLastError
());
}
if
(
winetest_interactive
&&
com_present
)
{
...
...
@@ -239,17 +244,20 @@ static void test_ConfigurePortUI(void)
if
(
com_absent
)
{
SetLastError
(
0xdeadbeef
);
res
=
pConfigurePortUI
(
NULL
,
NULL
,
com_absent
);
ok
(
!
res
&&
(
GetLastError
()
==
ERROR_UNKNOWN_PORT
),
"got %d with %u (expected '0' with ERROR_UNKNOWN_PORT)
\n
"
,
res
,
GetLastError
());
ok
(
!
res
&&
((
GetLastError
()
==
ERROR_UNKNOWN_PORT
)
||
(
GetLastError
()
==
ERROR_INVALID_PRINTER_NAME
)),
"got %d with %u (expected '0' with: ERROR_UNKNOWN_PORT or "
"ERROR_INVALID_PRINTER_NAME)
\n
"
,
res
,
GetLastError
());
}
if
(
winetest_interactive
&&
file_present
)
{
SetLastError
(
0xdeadbeef
);
res
=
pConfigurePortUI
(
NULL
,
NULL
,
portname_fileW
);
ok
(
!
res
&&
(
GetLastError
()
==
ERROR_CANCELLED
),
"got %d with %u (expected '0' with ERROR_CANCELLED)
\n
"
,
res
,
GetLastError
());
ok
(
!
res
&&
((
GetLastError
()
==
ERROR_CANCELLED
)
||
(
GetLastError
()
==
ERROR_ACCESS_DENIED
)),
"got %d with %u (expected '0' with: ERROR_CANCELLED or "
"ERROR_ACCESS_DENIED)
\n
"
,
res
,
GetLastError
());
}
}
...
...
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