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
adabe844
Commit
adabe844
authored
Jan 04, 2017
by
Jactry Zeng
Committed by
Alexandre Julliard
Jan 04, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz/tests: Skip test_render_run() if test file doesn't exist.
Signed-off-by:
Jactry Zeng
<
jzeng@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
3bf69237
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
13 deletions
+14
-13
filtergraph.c
dlls/quartz/tests/filtergraph.c
+14
-13
No files found.
dlls/quartz/tests/filtergraph.c
View file @
adabe844
...
...
@@ -354,25 +354,26 @@ static void test_render_run(const WCHAR *file)
HANDLE
h
;
HRESULT
hr
;
h
=
CreateFileW
(
file
,
0
,
0
,
NULL
,
OPEN_EXISTING
,
0
,
NULL
);
if
(
h
==
INVALID_HANDLE_VALUE
)
{
skip
(
"Could not read test file %s, skipping test
\n
"
,
wine_dbgstr_w
(
file
));
return
;
}
CloseHandle
(
h
);
if
(
!
createfiltergraph
())
return
;
h
=
CreateFileW
(
file
,
0
,
0
,
NULL
,
OPEN_EXISTING
,
0
,
NULL
);
if
(
h
!=
INVALID_HANDLE_VALUE
)
{
CloseHandle
(
h
);
hr
=
IGraphBuilder_RenderFile
(
pgraph
,
file
,
NULL
);
ok
(
hr
==
S_OK
,
"RenderFile returned: %x
\n
"
,
hr
);
rungraph
();
}
hr
=
IGraphBuilder_RenderFile
(
pgraph
,
file
,
NULL
);
ok
(
hr
==
S_OK
,
"RenderFile returned: %x
\n
"
,
hr
);
rungraph
();
releasefiltergraph
();
if
(
h
!=
INVALID_HANDLE_VALUE
)
{
/* check reference leaks */
h
=
CreateFileW
(
file
,
GENERIC_READ
,
0
,
NULL
,
OPEN_EXISTING
,
0
,
NULL
);
ok
(
h
!=
INVALID_HANDLE_VALUE
,
"CreateFile failed: err=%d
\n
"
,
GetLastError
());
CloseHandle
(
h
);
}
/* check reference leaks */
h
=
CreateFileW
(
file
,
GENERIC_READ
,
0
,
NULL
,
OPEN_EXISTING
,
0
,
NULL
);
ok
(
h
!=
INVALID_HANDLE_VALUE
,
"CreateFile failed: err=%d
\n
"
,
GetLastError
());
CloseHandle
(
h
);
}
static
void
test_graph_builder
(
void
)
...
...
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