mirror of
https://github.com/reactos/reactos.git
synced 2025-08-11 13:25:36 +00:00
update dxhaltest with some new test, Thuse test are not 100% correct in all case. some error should be supress when it been run in vmware with windows or reactos
svn path=/trunk/; revision=26718
This commit is contained in:
parent
a3d6e8f3e9
commit
62ae8a3919
9 changed files with 539 additions and 114 deletions
40
rostests/dxtest/win32kdxtest/NtGdiDdGetScanLine.c
Normal file
40
rostests/dxtest/win32kdxtest/NtGdiDdGetScanLine.c
Normal file
|
@ -0,0 +1,40 @@
|
|||
#include <stdio.h>
|
||||
/* SDK/DDK/NDK Headers. */
|
||||
#include <windows.h>
|
||||
#include <wingdi.h>
|
||||
#include <winddi.h>
|
||||
#include <d3dnthal.h>
|
||||
#include <dll/directx/d3d8thk.h>
|
||||
#include "test.h"
|
||||
|
||||
/*
|
||||
* Test see if we can delete a DirectDrawObject from win32k
|
||||
*
|
||||
*/
|
||||
void
|
||||
test_NtGdiDdGetScanLine(HANDLE hDirectDrawLocal)
|
||||
{
|
||||
int fails=0;
|
||||
BOOL retValue=FALSE;
|
||||
DD_GETSCANLINEDATA puGetScanLineData;
|
||||
|
||||
printf("Start testing of NtGdiDdGetScanLine\n");
|
||||
RtlZeroMemory(&puGetScanLineData,sizeof(DD_GETSCANLINEDATA));
|
||||
|
||||
retValue = OsThunkDdGetScanLine(NULL,NULL);
|
||||
testing_eq(retValue, DDHAL_DRIVER_HANDLED,fails,"1. NtGdiDdGetScanLine(NULL,NULL);\0");
|
||||
|
||||
retValue = OsThunkDdGetScanLine(hDirectDrawLocal,NULL);
|
||||
testing_eq(retValue, DDHAL_DRIVER_HANDLED,fails,"2. NtGdiDdGetScanLine(hDirectDrawLocal,NULL);\0");
|
||||
|
||||
puGetScanLineData.ddRVal = DDERR_GENERIC;
|
||||
retValue = OsThunkDdGetScanLine(hDirectDrawLocal,&puGetScanLineData);
|
||||
testing_eq(retValue,DDHAL_DRIVER_NOTHANDLED,fails,"3. NtGdiDdGetScanLine(hDirectDrawLocal,puGetScanLineData);\0");
|
||||
testing_noteq(puGetScanLineData.ddRVal,DD_OK,fails,"4. NtGdiDdGetScanLine(hDirectDrawLocal,puGetScanLineData);\0");
|
||||
testing_eq(puGetScanLineData.dwScanLine,0,fails,"4. NtGdiDdGetScanLine(hDirectDrawLocal,puGetScanLineData);\0");
|
||||
|
||||
|
||||
/* FIXME DDERR_VERTICALBLANKINPROGRESS test */
|
||||
|
||||
show_status(fails, "NtGdiDdGetScanLine\0");
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue