Paul Gofman : d3d9/tests: Test GetStreamSourceFreq() before any values were set.
Alexandre Julliard
julliard at winehq.org
Mon Feb 11 16:12:09 CST 2019
Module: wine
Branch: master
Commit: 4ac31569f93c6e8c77ba652915755275d8946538
URL: https://source.winehq.org/git/wine.git/?a=commit;h=4ac31569f93c6e8c77ba652915755275d8946538
Author: Paul Gofman <gofmanp at gmail.com>
Date: Fri Feb 8 19:34:14 2019 +0300
d3d9/tests: Test GetStreamSourceFreq() before any values were set.
Signed-off-by: Paul Gofman <gofmanp at gmail.com>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/d3d9/tests/visual.c | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/dlls/d3d9/tests/visual.c b/dlls/d3d9/tests/visual.c
index 3a6608a..13cf6c7 100644
--- a/dlls/d3d9/tests/visual.c
+++ b/dlls/d3d9/tests/visual.c
@@ -12419,9 +12419,15 @@ static void stream_test(void)
goto done;
}
- /* set the default value because it isn't done in wine? */
+ hr = IDirect3DDevice9_GetStreamSourceFreq(device, 0, &ind);
+ ok(hr == D3D_OK && ind == 1, "IDirect3DDevice9_GetStreamSourceFreq unexpected result, "
+ "hr %#x, ind %#x.\n", hr, ind);
+ hr = IDirect3DDevice9_GetStreamSourceFreq(device, 1, &ind);
+ ok(hr == D3D_OK && ind == 1, "IDirect3DDevice9_GetStreamSourceFreq unexpected result, "
+ "hr %#x, ind %#x.\n", hr, ind);
+
hr = IDirect3DDevice9_SetStreamSourceFreq(device, 1, 1);
- ok(hr == D3D_OK, "IDirect3DDevice9_SetStreamSourceFreq failed with %08x\n", hr);
+ ok(hr == D3D_OK, "IDirect3DDevice9_SetStreamSourceFreq failed, hr %#x.\n", hr);
/* check for D3DSTREAMSOURCE_INDEXEDDATA at stream0 */
hr = IDirect3DDevice9_SetStreamSourceFreq(device, 0, (D3DSTREAMSOURCE_INSTANCEDATA | 1));
More information about the wine-cvs
mailing list