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
ecffb803
Commit
ecffb803
authored
Feb 18, 2009
by
Huw Davies
Committed by
Alexandre Julliard
Feb 18, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comdlg32/tests: Skip remaining tests if StartDoc fails.
parent
f4e3e18b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
printdlg.c
dlls/comdlg32/tests/printdlg.c
+10
-1
No files found.
dlls/comdlg32/tests/printdlg.c
View file @
ecffb803
...
...
@@ -298,6 +298,7 @@ static void test_abort_proc(void)
DOCINFOA
doc_info
=
{
0
};
PRINTDLGA
pd
=
{
0
};
char
filename
[
MAX_PATH
];
int
job_id
;
if
(
!
GetTempFileNameA
(
"."
,
"prn"
,
0
,
filename
))
{
...
...
@@ -333,7 +334,14 @@ static void test_abort_proc(void)
doc_info
.
lpszDocName
=
"Some document"
;
doc_info
.
lpszOutput
=
filename
;
ok
(
StartDocA
(
print_dc
,
&
doc_info
)
>
0
,
"StartDocA failed
\n
"
);
job_id
=
StartDocA
(
print_dc
,
&
doc_info
);
ok
(
job_id
>
0
,
"StartDocA failed ret %d gle %d
\n
"
,
job_id
,
GetLastError
());
if
(
job_id
<=
0
)
{
skip
(
"StartDoc failed
\n
"
);
goto
end
;
}
ok
(
abort_proc_called
,
"AbortProc didn't get called by StartDoc.
\n
"
);
abort_proc_called
=
FALSE
;
...
...
@@ -357,6 +365,7 @@ static void test_abort_proc(void)
ok
(
!
abort_proc_called
,
"AbortProc got called unexpectedly by DeleteDC.
\n
"
);
abort_proc_called
=
FALSE
;
end:
ok
(
DeleteFileA
(
filename
),
"Failed to delete temporary file
\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