https://git.reactos.org/?p=reactos.git;a=commitdiff;h=1131d90516d894aa811e6…
commit 1131d90516d894aa811e6aac1d6a4db35c8eecc5
Author: Timo Kreuzer <timo.kreuzer(a)reactos.org>
AuthorDate: Tue Dec 26 16:10:16 2017 +0100
Commit: Timo Kreuzer <timo.kreuzer(a)reactos.org>
CommitDate: Sat Dec 21 12:44:48 2019 +0100
[NTDLL_APITEST] Remove duplicated test for RtlInitilizeBitMap
---
modules/rostests/apitests/ntdll/CMakeLists.txt | 1 -
modules/rostests/apitests/ntdll/RtlBitmap.c | 4 +++
.../rostests/apitests/ntdll/RtlInitializeBitMap.c | 41 ----------------------
modules/rostests/apitests/ntdll/testlist.c | 2 --
4 files changed, 4 insertions(+), 44 deletions(-)
diff --git a/modules/rostests/apitests/ntdll/CMakeLists.txt
b/modules/rostests/apitests/ntdll/CMakeLists.txt
index 8e8f2fc3897..cf0bbb4e284 100644
--- a/modules/rostests/apitests/ntdll/CMakeLists.txt
+++ b/modules/rostests/apitests/ntdll/CMakeLists.txt
@@ -56,7 +56,6 @@ list(APPEND SOURCE
RtlGetLongestNtPathLength.c
RtlHandle.c
RtlImageRvaToVa.c
- RtlInitializeBitMap.c
RtlIsNameLegalDOS8Dot3.c
RtlMemoryStream.c
RtlNtPathNameToDosPathName.c
diff --git a/modules/rostests/apitests/ntdll/RtlBitmap.c
b/modules/rostests/apitests/ntdll/RtlBitmap.c
index 82a2eff3ac5..8e7a12a51b6 100644
--- a/modules/rostests/apitests/ntdll/RtlBitmap.c
+++ b/modules/rostests/apitests/ntdll/RtlBitmap.c
@@ -94,6 +94,10 @@ Test_RtlInitializeBitMap(void)
_SEH2_END;
ok_int(Exception, 1);
+ RtlInitializeBitMap(&BitMapHeader, NULL, -1);
+ ok_int(BitMapHeader.SizeOfBitMap, -1);
+ ok_ptr(BitMapHeader.Buffer, NULL);
+
memset(Buffer, 0xcc, sizeof(Buffer));
RtlInitializeBitMap(&BitMapHeader, Buffer, 0);
ok_int(BitMapHeader.SizeOfBitMap, 0);
diff --git a/modules/rostests/apitests/ntdll/RtlInitializeBitMap.c
b/modules/rostests/apitests/ntdll/RtlInitializeBitMap.c
deleted file mode 100644
index 6dc1e193a0d..00000000000
--- a/modules/rostests/apitests/ntdll/RtlInitializeBitMap.c
+++ /dev/null
@@ -1,41 +0,0 @@
-/*
- * PROJECT: ReactOS api tests
- * LICENSE: GPL - See COPYING in the top level directory
- * PURPOSE: Test for RtlInitializeBitmap
- * PROGRAMMERS: Timo Kreuzer
- */
-
-#include "precomp.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();
-}
-
diff --git a/modules/rostests/apitests/ntdll/testlist.c
b/modules/rostests/apitests/ntdll/testlist.c
index bfaf8b476fa..cfcf8cefe04 100644
--- a/modules/rostests/apitests/ntdll/testlist.c
+++ b/modules/rostests/apitests/ntdll/testlist.c
@@ -55,7 +55,6 @@ extern void func_RtlGetLengthWithoutTrailingPathSeperators(void);
extern void func_RtlGetLongestNtPathLength(void);
extern void func_RtlHandle(void);
extern void func_RtlImageRvaToVa(void);
-extern void func_RtlInitializeBitMap(void);
extern void func_RtlIsNameLegalDOS8Dot3(void);
extern void func_RtlMemoryStream(void);
extern void func_RtlNtPathNameToDosPathName(void);
@@ -121,7 +120,6 @@ const struct test winetest_testlist[] =
{ "RtlGetLongestNtPathLength", func_RtlGetLongestNtPathLength },
{ "RtlHandle", func_RtlHandle },
{ "RtlImageRvaToVa", func_RtlImageRvaToVa },
- { "RtlInitializeBitMap", func_RtlInitializeBitMap },
{ "RtlIsNameLegalDOS8Dot3", func_RtlIsNameLegalDOS8Dot3 },
{ "RtlMemoryStream", func_RtlMemoryStream },
{ "RtlNtPathNameToDosPathName", func_RtlNtPathNameToDosPathName },