Author: tkreuzer
Date: Thu Aug 26 02:29:19 2010
New Revision: 48623
URL:
http://svn.reactos.org/svn/reactos?rev=48623&view=rev
Log:
[NTDLL_APITEST]
- Add a test for RtlInitializeBitMap.
Added:
trunk/rostests/apitests/ntdll/RtlInitializeBitMap.c (with props)
Modified:
trunk/rostests/apitests/ntdll/ntdll_apitest.rbuild
trunk/rostests/apitests/ntdll/testlist.c
Added: trunk/rostests/apitests/ntdll/RtlInitializeBitMap.c
URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/apitests/ntdll/RtlInitial…
==============================================================================
--- trunk/rostests/apitests/ntdll/RtlInitializeBitMap.c (added)
+++ trunk/rostests/apitests/ntdll/RtlInitializeBitMap.c [iso-8859-1] Thu Aug 26 02:29:19
2010
@@ -1,0 +1,44 @@
+/*
+ * PROJECT: ReactOS api tests
+ * LICENSE: GPL - See COPYING in the top level directory
+ * PURPOSE: Test for RtlInitializeBitmap
+ * PROGRAMMERS: Timo Kreuzer
+ */
+
+#define WIN32_NO_STATUS
+#include <stdio.h>
+#include <wine/test.h>
+#include <ndk/ntndk.h>
+
+void Test_RtlInitializeBitmap()
+{
+ RTL_BITMAP Bitmap;
+ ULONG Buffer[5];
+
+ Buffer[0] = 0x12345;
+ Buffer[1] = 0x23456;
+ Buffer[2] = 0x34567;
+ Buffer[3] = 0x45678;
+ Buffer[4] = 0x56789;
+
+ RtlInitializeBitMap(&Bitmap, Buffer, 19);
+ ok(Bitmap.Buffer == Buffer, "Buffer=%p\n", Bitmap.Buffer);
+ ok(Bitmap.SizeOfBitMap == 19, "SizeOfBitMap=%ld\n", Bitmap.SizeOfBitMap);
+
+ ok(Buffer[0] == 0x12345, "Buffer[0] == 0x%lx\n", Buffer[0]);
+ ok(Buffer[1] == 0x23456, "Buffer[1] == 0x%lx\n", Buffer[1]);
+ ok(Buffer[2] == 0x34567, "Buffer[2] == 0x%lx\n", Buffer[2]);
+ ok(Buffer[3] == 0x45678, "Buffer[3] == 0x%lx\n", Buffer[3]);
+ ok(Buffer[4] == 0x56789, "Buffer[4] == 0x%lx\n", Buffer[4]);
+
+ RtlInitializeBitMap(&Bitmap, 0, -100);
+ ok(Bitmap.Buffer == 0, "Buffer=%p\n", Bitmap.Buffer);
+ ok(Bitmap.SizeOfBitMap == -100, "SizeOfBitMap=%ld\n",
Bitmap.SizeOfBitMap);
+
+}
+
+START_TEST(RtlInitializeBitMap)
+{
+ Test_RtlInitializeBitmap();
+}
+
Propchange: trunk/rostests/apitests/ntdll/RtlInitializeBitMap.c
------------------------------------------------------------------------------
svn:eol-style = native
Modified: trunk/rostests/apitests/ntdll/ntdll_apitest.rbuild
URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/apitests/ntdll/ntdll_apit…
==============================================================================
--- trunk/rostests/apitests/ntdll/ntdll_apitest.rbuild [iso-8859-1] (original)
+++ trunk/rostests/apitests/ntdll/ntdll_apitest.rbuild [iso-8859-1] Thu Aug 26 02:29:19
2010
@@ -8,6 +8,7 @@
<library>pseh</library>
<file>testlist.c</file>
+ <file>RtlInitializeBitmap.c</file>
<file>ZwContinue.c</file>
<if property="ARCH" value="i386">
<directory name="i386">
Modified: trunk/rostests/apitests/ntdll/testlist.c
URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/apitests/ntdll/testlist.c…
==============================================================================
--- trunk/rostests/apitests/ntdll/testlist.c [iso-8859-1] (original)
+++ trunk/rostests/apitests/ntdll/testlist.c [iso-8859-1] Thu Aug 26 02:29:19 2010
@@ -5,10 +5,12 @@
#define STANDALONE
#include "wine/test.h"
+extern void func_RtlInitializeBitMap(void);
extern void func_ZwContinue(void);
const struct test winetest_testlist[] =
{
+ { "RtlInitializeBitMap", func_RtlInitializeBitMap },
{ "ZwContinue", func_ZwContinue },
{ 0, 0 }