mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 09:09:04 +08:00
Code cleanup - constexpr for bitness ults
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
72a0621dc2
commit
7fdab76d96
@@ -126,7 +126,7 @@ TEST_F(DeviceTest, WhenDeviceIsCreatedThenOsTimeIsNotNull) {
|
||||
TEST_F(DeviceTest, GivenDebugVariableForcing32BitAllocationsWhenDeviceIsCreatedThenMemoryManagerHasForce32BitFlagSet) {
|
||||
DebugManager.flags.Force32bitAddressing.set(true);
|
||||
auto pDevice = std::unique_ptr<Device>(MockDevice::createWithNewExecutionEnvironment<MockDevice>(nullptr));
|
||||
if (is64bit) {
|
||||
if constexpr (is64bit) {
|
||||
EXPECT_TRUE(pDevice->getDeviceInfo().force32BitAddressess);
|
||||
EXPECT_TRUE(pDevice->getMemoryManager()->peekForce32BitAllocations());
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user