Remove not used debug variable.

Change-Id: I6e3a7d1340096383101b84148d772afd2d4f304e
This commit is contained in:
Mrozek, Michal
2018-08-09 14:55:51 +02:00
committed by sys_ocldev
parent d9aad44434
commit 9776868aff
3 changed files with 0 additions and 30 deletions

View File

@@ -234,34 +234,6 @@ TEST_F(MemoryAllocatorTest, storeTemporaryAllocation) {
EXPECT_TRUE(memoryManager->graphicsAllocations.peekIsEmpty() == false);
}
TEST_F(MemoryAllocatorTest, DISABLED_allocateGraphicsPageDebugInitialized) {
// Test the memory initialization control when debugging
if (OCLRT::DebugManager.disabled() == false) {
auto f = DebugManager.flags.InitializeMemoryInDebug.get();
DebugManager.flags.InitializeMemoryInDebug.set(0x10);
auto allocation = memoryManager->allocateGraphicsMemory(sizeof(uint32_t));
EXPECT_NE(nullptr, allocation);
uint32_t *a = reinterpret_cast<uint32_t *>(allocation->getUnderlyingBuffer());
EXPECT_EQ(0xFEFEFEFE, *a);
memoryManager->freeGraphicsMemory(allocation);
DebugManager.flags.InitializeMemoryInDebug.set(0x20);
allocation = memoryManager->allocateGraphicsMemory(sizeof(uint32_t));
EXPECT_NE(nullptr, allocation);
a = reinterpret_cast<uint32_t *>(allocation->getUnderlyingBuffer());
EXPECT_EQ(0u, *a);
memoryManager->freeGraphicsMemory(allocation);
DebugManager.flags.InitializeMemoryInDebug.set(0x00);
allocation = memoryManager->allocateGraphicsMemory(sizeof(uint32_t));
EXPECT_NE(nullptr, allocation);
memoryManager->freeGraphicsMemory(allocation);
DebugManager.flags.InitializeMemoryInDebug.set(f);
}
}
TEST_F(MemoryAllocatorTest, selectiveDestroy) {
void *host_ptr = (void *)0x1234;
auto allocation = memoryManager->allocateGraphicsMemory(1, host_ptr);