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
753e61fe
Commit
753e61fe
authored
Mar 05, 2007
by
Detlef Riekenberg
Committed by
Alexandre Julliard
Mar 06, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winspool/tests: Vista returns a different status.
parent
deaa366e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
19 deletions
+20
-19
info.c
dlls/winspool.drv/tests/info.c
+20
-19
No files found.
dlls/winspool.drv/tests/info.c
View file @
753e61fe
...
@@ -86,7 +86,7 @@ static DWORD report_deactivated_spooler = 1;
...
@@ -86,7 +86,7 @@ static DWORD report_deactivated_spooler = 1;
{ \
{ \
if(report_deactivated_spooler > 0) { \
if(report_deactivated_spooler > 0) { \
report_deactivated_spooler--; \
report_deactivated_spooler--; \
trace
("The Service 'Spooler' is required for many test\n"); \
skip
("The Service 'Spooler' is required for many test\n"); \
} \
} \
return; \
return; \
}
}
...
@@ -308,7 +308,7 @@ static void test_AddMonitor(void)
...
@@ -308,7 +308,7 @@ static void test_AddMonitor(void)
RETURN_ON_DEACTIVATED_SPOOLER
(
res
)
RETURN_ON_DEACTIVATED_SPOOLER
(
res
)
if
(
!
res
&&
(
GetLastError
()
==
ERROR_ACCESS_DENIED
))
{
if
(
!
res
&&
(
GetLastError
()
==
ERROR_ACCESS_DENIED
))
{
trace
(
"skip tests
(ACCESS_DENIED)
\n
"
);
skip
(
"
(ACCESS_DENIED)
\n
"
);
return
;
return
;
}
}
...
@@ -319,7 +319,7 @@ static void test_AddMonitor(void)
...
@@ -319,7 +319,7 @@ static void test_AddMonitor(void)
"ERROR_INVALID_ENVIRONMENT)
\n
"
,
res
,
GetLastError
());
"ERROR_INVALID_ENVIRONMENT)
\n
"
,
res
,
GetLastError
());
if
(
!
entry
)
{
if
(
!
entry
)
{
trace
(
"No usable Monitor found: Skip tests
\n
"
);
skip
(
"No usable Monitor found
\n
"
);
return
;
return
;
}
}
...
@@ -434,7 +434,7 @@ static void test_AddPort(void)
...
@@ -434,7 +434,7 @@ static void test_AddPort(void)
res
=
AddPortA
(
NULL
,
0
,
empty
);
res
=
AddPortA
(
NULL
,
0
,
empty
);
/* Allowed only for (Printer-)Administrators */
/* Allowed only for (Printer-)Administrators */
if
(
!
res
&&
(
GetLastError
()
==
ERROR_ACCESS_DENIED
))
{
if
(
!
res
&&
(
GetLastError
()
==
ERROR_ACCESS_DENIED
))
{
trace
(
"skip tests
(ACCESS_DENIED)
\n
"
);
skip
(
"
(ACCESS_DENIED)
\n
"
);
return
;
return
;
}
}
/* XP: ERROR_NOT_SUPPORTED, NT351 and 9x: ERROR_INVALID_PARAMETER */
/* XP: ERROR_NOT_SUPPORTED, NT351 and 9x: ERROR_INVALID_PARAMETER */
...
@@ -474,7 +474,7 @@ static void test_ConfigurePort(void)
...
@@ -474,7 +474,7 @@ static void test_ConfigurePort(void)
res
=
ConfigurePortA
(
NULL
,
0
,
empty
);
res
=
ConfigurePortA
(
NULL
,
0
,
empty
);
/* Allowed only for (Printer-)Administrators */
/* Allowed only for (Printer-)Administrators */
if
(
!
res
&&
(
GetLastError
()
==
ERROR_ACCESS_DENIED
))
{
if
(
!
res
&&
(
GetLastError
()
==
ERROR_ACCESS_DENIED
))
{
trace
(
" skip tests
(ACCESS_DENIED)
\n
"
);
skip
(
"
(ACCESS_DENIED)
\n
"
);
return
;
return
;
}
}
/* XP: ERROR_NOT_SUPPORTED, NT351 and 9x: ERROR_INVALID_PARAMETER */
/* XP: ERROR_NOT_SUPPORTED, NT351 and 9x: ERROR_INVALID_PARAMETER */
...
@@ -530,7 +530,7 @@ static void test_DeleteMonitor(void)
...
@@ -530,7 +530,7 @@ static void test_DeleteMonitor(void)
entry
=
find_installed_monitor
();
entry
=
find_installed_monitor
();
if
(
!
entry
)
{
if
(
!
entry
)
{
trace
(
"No usable Monitor found: Skip tests
\n
"
);
skip
(
"No usable Monitor found
\n
"
);
return
;
return
;
}
}
...
@@ -615,7 +615,7 @@ static void test_DeletePort(void)
...
@@ -615,7 +615,7 @@ static void test_DeletePort(void)
res
=
DeletePortA
(
NULL
,
0
,
empty
);
res
=
DeletePortA
(
NULL
,
0
,
empty
);
/* Allowed only for (Printer-)Administrators */
/* Allowed only for (Printer-)Administrators */
if
(
!
res
&&
(
GetLastError
()
==
ERROR_ACCESS_DENIED
))
{
if
(
!
res
&&
(
GetLastError
()
==
ERROR_ACCESS_DENIED
))
{
trace
(
"skip tests
(ACCESS_DENIED)
\n
"
);
skip
(
"
(ACCESS_DENIED)
\n
"
);
return
;
return
;
}
}
/* XP: ERROR_NOT_SUPPORTED, NT351 and 9x: ERROR_INVALID_PARAMETER */
/* XP: ERROR_NOT_SUPPORTED, NT351 and 9x: ERROR_INVALID_PARAMETER */
...
@@ -653,7 +653,7 @@ static void test_EnumForms(LPSTR pName)
...
@@ -653,7 +653,7 @@ static void test_EnumForms(LPSTR pName)
if
(
!
res
||
!
hprinter
)
if
(
!
res
||
!
hprinter
)
{
{
/* Open the local Prinserver is not supported on win9x */
/* Open the local Prinserver is not supported on win9x */
if
(
pName
)
trace
(
"Failed to open '%s', skiping the test
\n
"
,
pName
);
if
(
pName
)
skip
(
"Failed to open '%s' (not supported on win9x)
\n
"
,
pName
);
return
;
return
;
}
}
...
@@ -776,7 +776,7 @@ static void test_EnumMonitors(void)
...
@@ -776,7 +776,7 @@ static void test_EnumMonitors(void)
/* Level 2 is not supported on win9x */
/* Level 2 is not supported on win9x */
if
(
!
res
&&
(
GetLastError
()
==
ERROR_INVALID_LEVEL
))
{
if
(
!
res
&&
(
GetLastError
()
==
ERROR_INVALID_LEVEL
))
{
trace
(
"Level %d not supported, skipping tests
\n
"
,
level
);
skip
(
"Level %d not supported
\n
"
,
level
);
continue
;
continue
;
}
}
...
@@ -785,7 +785,7 @@ static void test_EnumMonitors(void)
...
@@ -785,7 +785,7 @@ static void test_EnumMonitors(void)
"ERROR_INSUFFICIENT_BUFFER)
\n
"
,
level
,
res
,
GetLastError
());
"ERROR_INSUFFICIENT_BUFFER)
\n
"
,
level
,
res
,
GetLastError
());
if
(
!
cbBuf
)
{
if
(
!
cbBuf
)
{
trace
(
"no valid buffer size returned, skipping tests
\n
"
);
skip
(
"no valid buffer size returned
\n
"
);
continue
;
continue
;
}
}
...
@@ -884,7 +884,7 @@ static void test_EnumPorts(void)
...
@@ -884,7 +884,7 @@ static void test_EnumPorts(void)
/* Level 2 is not supported on NT 3.x */
/* Level 2 is not supported on NT 3.x */
if
(
!
res
&&
(
GetLastError
()
==
ERROR_INVALID_LEVEL
))
{
if
(
!
res
&&
(
GetLastError
()
==
ERROR_INVALID_LEVEL
))
{
trace
(
"Level %d not supported, skipping tests
\n
"
,
level
);
skip
(
"Level %d not supported
\n
"
,
level
);
continue
;
continue
;
}
}
...
@@ -1045,7 +1045,7 @@ static void test_GetPrinterDriverDirectory(void)
...
@@ -1045,7 +1045,7 @@ static void test_GetPrinterDriverDirectory(void)
"ERROR_INSUFFICIENT_BUFFER)
\n
"
,
res
,
GetLastError
());
"ERROR_INSUFFICIENT_BUFFER)
\n
"
,
res
,
GetLastError
());
if
(
!
cbBuf
)
{
if
(
!
cbBuf
)
{
trace
(
"no valid buffer size returned, skipping tests
\n
"
);
skip
(
"no valid buffer size returned
\n
"
);
return
;
return
;
}
}
...
@@ -1716,8 +1716,9 @@ static void test_XcvDataW_PortIsValid(void)
...
@@ -1716,8 +1716,9 @@ static void test_XcvDataW_PortIsValid(void)
status
=
(
DWORD
)
0xdeadbeef
;
status
=
(
DWORD
)
0xdeadbeef
;
SetLastError
(
0xdeadbeef
);
SetLastError
(
0xdeadbeef
);
res
=
pXcvDataW
(
hXcv
,
cmd_PortIsValidW
,
(
PBYTE
)
emptyW
,
sizeof
(
emptyW
),
NULL
,
0
,
&
needed
,
&
status
);
res
=
pXcvDataW
(
hXcv
,
cmd_PortIsValidW
,
(
PBYTE
)
emptyW
,
sizeof
(
emptyW
),
NULL
,
0
,
&
needed
,
&
status
);
ok
(
res
&&
(
status
==
ERROR_PATH_NOT_FOUND
),
ok
(
res
&&
((
status
==
ERROR_FILE_NOT_FOUND
)
||
(
status
==
ERROR_PATH_NOT_FOUND
)),
"returned %d with %u and %u for status %u (expected '!= 0' for ERROR_PATH_NOT_FOUND)
\n
"
,
"returned %d with %u and %u for status %u (expected '!= 0' for status: "
"ERROR_FILE_NOT_FOUND or ERROR_PATH_NOT_FOUND)
\n
"
,
res
,
GetLastError
(),
needed
,
status
);
res
,
GetLastError
(),
needed
,
status
);
/* a directory is not allowed */
/* a directory is not allowed */
...
@@ -1797,7 +1798,7 @@ static void test_GetPrinterDriver(void)
...
@@ -1797,7 +1798,7 @@ static void test_GetPrinterDriver(void)
if
(
!
default_printer
)
if
(
!
default_printer
)
{
{
trace
(
"There is no default printer installed, skiping the test
\n
"
);
skip
(
"There is no default printer installed
\n
"
);
return
;
return
;
}
}
...
@@ -1805,7 +1806,7 @@ static void test_GetPrinterDriver(void)
...
@@ -1805,7 +1806,7 @@ static void test_GetPrinterDriver(void)
ret
=
OpenPrinter
(
default_printer
,
&
hprn
,
NULL
);
ret
=
OpenPrinter
(
default_printer
,
&
hprn
,
NULL
);
if
(
!
ret
)
if
(
!
ret
)
{
{
trace
(
"There is no printers installed, skiping the test
\n
"
);
skip
(
"Unable to open the default printer (%s)
\n
"
,
default_printer
);
return
;
return
;
}
}
ok
(
hprn
!=
0
,
"wrong hprn %p
\n
"
,
hprn
);
ok
(
hprn
!=
0
,
"wrong hprn %p
\n
"
,
hprn
);
...
@@ -1906,7 +1907,7 @@ static void test_DocumentProperties(void)
...
@@ -1906,7 +1907,7 @@ static void test_DocumentProperties(void)
if
(
!
default_printer
)
if
(
!
default_printer
)
{
{
trace
(
"There is no default printer installed, skiping the test
\n
"
);
skip
(
"There is no default printer installed
\n
"
);
return
;
return
;
}
}
...
@@ -1914,7 +1915,7 @@ static void test_DocumentProperties(void)
...
@@ -1914,7 +1915,7 @@ static void test_DocumentProperties(void)
ret
=
OpenPrinter
(
default_printer
,
&
hprn
,
NULL
);
ret
=
OpenPrinter
(
default_printer
,
&
hprn
,
NULL
);
if
(
!
ret
)
if
(
!
ret
)
{
{
trace
(
"There is no printers installed, skiping the test
\n
"
);
skip
(
"Unable to open the default printer (%s)
\n
"
,
default_printer
);
return
;
return
;
}
}
ok
(
hprn
!=
0
,
"wrong hprn %p
\n
"
,
hprn
);
ok
(
hprn
!=
0
,
"wrong hprn %p
\n
"
,
hprn
);
...
@@ -1966,7 +1967,7 @@ static void test_EnumPrinters(void)
...
@@ -1966,7 +1967,7 @@ static void test_EnumPrinters(void)
/* EnumPrintersW is not supported on all platforms */
/* EnumPrintersW is not supported on all platforms */
if
(
!
ret
&&
(
GetLastError
()
==
ERROR_CALL_NOT_IMPLEMENTED
))
if
(
!
ret
&&
(
GetLastError
()
==
ERROR_CALL_NOT_IMPLEMENTED
))
{
{
trace
(
"EnumPrintersW is not implemented, skipping some tests
\n
"
);
skip
(
"EnumPrintersW is not implemented
\n
"
);
return
;
return
;
}
}
...
...
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