test: correct dead code in tests

Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2024-05-28 15:01:51 +00:00
committed by Compute-Runtime-Automation
parent 5bbfce8b97
commit 4f8ec54e1d
7 changed files with 19 additions and 23 deletions

View File

@@ -479,7 +479,7 @@ INSTANTIATE_TEST_SUITE_P(
HeapIndex::heapStandard2MB,
HeapIndex::heapExtended));
struct GfxPartitionOn57bTest : public ::testing::TestWithParam<uint32_t> {
struct GfxPartitionOn57bTest : public ::testing::Test {
public:
class MockOsMemory : public OSMemory {
public:
@@ -599,12 +599,12 @@ struct GfxPartitionOn57bTest : public ::testing::TestWithParam<uint32_t> {
uint32_t GfxPartitionOn57bTest::MockOsMemory::reserveCount = 0;
TEST_P(GfxPartitionOn57bTest, given48bitCpuAddressWidthWhenInitializingGfxPartitionThenDoNotReserve48bitSpaceForDriverAllocations) {
TEST_F(GfxPartitionOn57bTest, given48bitCpuAddressWidthWhenInitializingGfxPartitionThenDoNotReserve48bitSpaceForDriverAllocations) {
if (is32bit) {
GTEST_SKIP();
}
auto gpuAddressSpace = GetParam();
auto gpuAddressSpace = 48;
// 48 bit CPU VA - do not reserve CPU address range, use [0x800000000000-0xFFFFFFFFFFFF]
CpuInfoOverrideVirtualAddressSizeAndFlags overrideCpuInfo(48);
@@ -618,12 +618,12 @@ TEST_P(GfxPartitionOn57bTest, given48bitCpuAddressWidthWhenInitializingGfxPartit
verifyHeaps(0x800000000000, 0x1000000000000, 0x7FFFFFFFFFFF, gpuAddressSpace == 57);
}
TEST_P(GfxPartitionOn57bTest, given57bitCpuAddressWidthAndLa57IsNotPresentWhenInitializingGfxPartitionThenDoNotReserve48bitSpaceForDriverAllocations) {
TEST_F(GfxPartitionOn57bTest, given57bitCpuAddressWidthAndLa57IsNotPresentWhenInitializingGfxPartitionThenDoNotReserve48bitSpaceForDriverAllocations) {
if (is32bit) {
GTEST_SKIP();
}
auto gpuAddressSpace = GetParam();
auto gpuAddressSpace = 57;
// 57 bit CPU VA, la57 is not present - do not reserve CPU address range, use [0x800000000000-0xFFFFFFFFFFFF]
CpuInfoOverrideVirtualAddressSizeAndFlags overrideCpuInfo(57);

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2019-2023 Intel Corporation
* Copyright (C) 2019-2024 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -10,7 +10,7 @@
#include "shared/source/memory_manager/local_memory_usage.h"
#include "shared/test/common/helpers/debug_manager_state_restore.h"
#include "third_party/gtest/gtest/gtest.h"
#include "gtest/gtest.h"
namespace NEO {