Minor cleanup.

Change-Id: I0f345c4fbf49f6464dce7bafd8b8d59347ff2d77
Signed-off-by: Piotr Fusik <piotr.fusik@intel.com>
This commit is contained in:
Piotr Fusik
2019-04-25 10:11:25 +02:00
committed by sys_ocldev
parent 148774ee7a
commit 92584d8c64
11 changed files with 37 additions and 57 deletions

View File

@@ -1138,13 +1138,8 @@ TEST_F(EventTest, hwTimeStampsMemoryIsPlacedInGraphicsAllocation) {
void *memoryStorage = allocation->getUnderlyingBuffer();
size_t graphicsAllocationSize = allocation->getUnderlyingBufferSize();
uintptr_t timeStampAddress = reinterpret_cast<uintptr_t>(timeStamps);
uintptr_t graphicsAllocationStart = reinterpret_cast<uintptr_t>(memoryStorage);
if (!((timeStampAddress >= graphicsAllocationStart) &&
((timeStampAddress + sizeof(HwTimeStamps)) <= (graphicsAllocationStart + graphicsAllocationSize)))) {
EXPECT_TRUE(false);
}
EXPECT_GE(timeStamps, memoryStorage);
EXPECT_LE(timeStamps + 1, ptrOffset(memoryStorage, graphicsAllocationSize));
}
TEST_F(EventTest, getHwPerfCounterReturnsValidPointer) {