From f54e38e9ac580d63579f27579ff3b85f19c4a68f Mon Sep 17 00:00:00 2001 From: Magnus Olsen Date: Sun, 1 Jun 2008 14:38:02 +0000 Subject: [PATCH] add Test for EngDeleteSemaphore, it only test if it been create or not svn path=/trunk/; revision=33807 --- rostests/apitests/gdi32api/testlist.c | 2 ++ .../apitests/gdi32api/tests/EngCreateSemaphore.c | 15 +++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 rostests/apitests/gdi32api/tests/EngCreateSemaphore.c diff --git a/rostests/apitests/gdi32api/testlist.c b/rostests/apitests/gdi32api/testlist.c index d6663602ebd..f2563199340 100644 --- a/rostests/apitests/gdi32api/testlist.c +++ b/rostests/apitests/gdi32api/testlist.c @@ -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 }, diff --git a/rostests/apitests/gdi32api/tests/EngCreateSemaphore.c b/rostests/apitests/gdi32api/tests/EngCreateSemaphore.c new file mode 100644 index 00000000000..84192a812e9 --- /dev/null +++ b/rostests/apitests/gdi32api/tests/EngCreateSemaphore.c @@ -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; +} +