add Test for EngDeleteSemaphore, it only test if it been create or not
authorMagnus Olsen <magnus@greatlord.com>
Sun, 1 Jun 2008 14:38:02 +0000 (14:38 +0000)
committerMagnus Olsen <magnus@greatlord.com>
Sun, 1 Jun 2008 14:38:02 +0000 (14:38 +0000)
svn path=/trunk/; revision=33807

rostests/apitests/gdi32api/testlist.c
rostests/apitests/gdi32api/tests/EngCreateSemaphore.c [new file with mode: 0644]

index d666360..f256319 100644 (file)
@@ -11,6 +11,7 @@
 #include "tests/CreateFont.c"\r
 #include "tests/CreatePen.c"\r
 #include "tests/CreateRectRgn.c"\r
+#include "tests/EngCreateSemaphore.c"\r
 #include "tests/ExtCreatePen.c"\r
 #include "tests/GdiConvertBitmap.c"\r
 #include "tests/GdiConvertBrush.c"\r
@@ -51,6 +52,7 @@ TESTENTRY TestList[] =
        { L"CreateCompatibleDC", Test_CreateCompatibleDC },\r
        { L"CreateFont", Test_CreateFont },\r
        { L"CreatePen", Test_CreatePen },\r
+       { L"EngCreateSemaphore", Test_EngCreateSemaphore },\r
        { L"CreateRectRgn", Test_CreateRectRgn },\r
        { L"ExtCreatePen", Test_ExtCreatePen },\r
        { L"GdiConvertBitmap", Test_GdiConvertBitmap },\r
diff --git a/rostests/apitests/gdi32api/tests/EngCreateSemaphore.c b/rostests/apitests/gdi32api/tests/EngCreateSemaphore.c
new file mode 100644 (file)
index 0000000..84192a8
--- /dev/null
@@ -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;
+}
+