mirror of
https://github.com/reactos/reactos.git
synced 2025-06-25 17:59:43 +00:00
add Test for EngDeleteSemaphore, it only test if it been create or not
svn path=/trunk/; revision=33807
This commit is contained in:
parent
ed39c925a0
commit
f54e38e9ac
2 changed files with 17 additions and 0 deletions
|
@ -11,6 +11,7 @@
|
|||
#include "tests/CreateFont.c"
|
||||
#include "tests/CreatePen.c"
|
||||
#include "tests/CreateRectRgn.c"
|
||||
#include "tests/EngCreateSemaphore.c"
|
||||
#include "tests/ExtCreatePen.c"
|
||||
#include "tests/GdiConvertBitmap.c"
|
||||
#include "tests/GdiConvertBrush.c"
|
||||
|
@ -51,6 +52,7 @@ TESTENTRY TestList[] =
|
|||
{ L"CreateCompatibleDC", Test_CreateCompatibleDC },
|
||||
{ L"CreateFont", Test_CreateFont },
|
||||
{ L"CreatePen", Test_CreatePen },
|
||||
{ L"EngCreateSemaphore", Test_EngCreateSemaphore },
|
||||
{ L"CreateRectRgn", Test_CreateRectRgn },
|
||||
{ L"ExtCreatePen", Test_ExtCreatePen },
|
||||
{ L"GdiConvertBitmap", Test_GdiConvertBitmap },
|
||||
|
|
15
rostests/apitests/gdi32api/tests/EngCreateSemaphore.c
Normal file
15
rostests/apitests/gdi32api/tests/EngCreateSemaphore.c
Normal file
|
@ -0,0 +1,15 @@
|
|||
/* Simple test of EngAcquireSemaphore only check if we got a lock or not */
|
||||
INT
|
||||
Test_EngCreateSemaphore(PTESTINFO pti)
|
||||
{
|
||||
|
||||
HSEMAPHORE hsem;
|
||||
hsem = EngCreateSemaphore();
|
||||
|
||||
RTEST ( hsem != NULL );
|
||||
|
||||
EngDeleteSemaphore(hsem);
|
||||
|
||||
return APISTATUS_NORMAL;
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue