add Test for EngDeleteSemaphore, it only test if it been create or not

svn path=/trunk/; revision=33807
This commit is contained in:
Magnus Olsen 2008-06-01 14:38:02 +00:00
parent ed39c925a0
commit f54e38e9ac
2 changed files with 17 additions and 0 deletions

View file

@ -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 },

View 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;
}