mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 14:55:24 +08:00
test: allowing neo ULT build with optimization enabled 2/n
Fixes mismatched-new-delete warnings Related-To: NEO-8116 Signed-off-by: Oskar Hubert Weber <oskar.hubert.weber@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
2568c739a8
commit
5dc5c839a6
@@ -52,7 +52,7 @@ HWTEST_F(CommandEncodeSemaphore, whenAddingMiSemaphoreCommandThenExpectCompareFi
|
||||
using COMPARE_OPERATION = typename FamilyType::MI_SEMAPHORE_WAIT::COMPARE_OPERATION;
|
||||
using WAIT_MODE = typename FamilyType::MI_SEMAPHORE_WAIT::WAIT_MODE;
|
||||
|
||||
std::unique_ptr<uint8_t> buffer(new uint8_t[128]);
|
||||
auto buffer = std::make_unique<uint8_t[]>(128);
|
||||
LinearStream stream(buffer.get(), 128);
|
||||
COMPARE_OPERATION compareMode = COMPARE_OPERATION::COMPARE_OPERATION_SAD_GREATER_THAN_OR_EQUAL_SDD;
|
||||
|
||||
@@ -79,7 +79,7 @@ HWTEST2_F(CommandEncodeSemaphore, givenIndirectModeSetWhenProgrammingSemaphoreTh
|
||||
using COMPARE_OPERATION = typename FamilyType::MI_SEMAPHORE_WAIT::COMPARE_OPERATION;
|
||||
using WAIT_MODE = typename FamilyType::MI_SEMAPHORE_WAIT::WAIT_MODE;
|
||||
|
||||
std::unique_ptr<uint8_t> buffer(new uint8_t[128]);
|
||||
auto buffer = std::make_unique<uint8_t[]>(128);
|
||||
LinearStream stream(buffer.get(), 128);
|
||||
COMPARE_OPERATION compareMode = COMPARE_OPERATION::COMPARE_OPERATION_SAD_GREATER_THAN_OR_EQUAL_SDD;
|
||||
|
||||
|
||||
@@ -219,7 +219,7 @@ using LriHelperTests = ::testing::Test;
|
||||
|
||||
HWTEST_F(LriHelperTests, givenAddressAndOffsetWhenHelperIsUsedThenProgramCmdStream) {
|
||||
using MI_LOAD_REGISTER_IMM = typename FamilyType::MI_LOAD_REGISTER_IMM;
|
||||
std::unique_ptr<uint8_t> buffer(new uint8_t[128]);
|
||||
auto buffer = std::make_unique<uint8_t[]>(128);
|
||||
|
||||
LinearStream stream(buffer.get(), 128);
|
||||
uint32_t address = 0x8888;
|
||||
@@ -240,7 +240,7 @@ HWTEST_F(LriHelperTests, givenAddressAndOffsetWhenHelperIsUsedThenProgramCmdStre
|
||||
|
||||
HWTEST_F(LriHelperTests, givenAddressAndOffsetAndRemapAndNotBlitterWhenHelperIsUsedThenProgramCmdStream) {
|
||||
using MI_LOAD_REGISTER_IMM = typename FamilyType::MI_LOAD_REGISTER_IMM;
|
||||
std::unique_ptr<uint8_t> buffer(new uint8_t[128]);
|
||||
auto buffer = std::make_unique<uint8_t[]>(128);
|
||||
|
||||
LinearStream stream(buffer.get(), 128);
|
||||
uint32_t address = 0x8888;
|
||||
@@ -261,7 +261,7 @@ HWTEST_F(LriHelperTests, givenAddressAndOffsetAndRemapAndNotBlitterWhenHelperIsU
|
||||
|
||||
HWTEST_F(LriHelperTests, givenAddressAndOffsetAndNotRemapAndBlitterWhenHelperIsUsedThenProgramCmdStream) {
|
||||
using MI_LOAD_REGISTER_IMM = typename FamilyType::MI_LOAD_REGISTER_IMM;
|
||||
std::unique_ptr<uint8_t> buffer(new uint8_t[128]);
|
||||
auto buffer = std::make_unique<uint8_t[]>(128);
|
||||
|
||||
LinearStream stream(buffer.get(), 128);
|
||||
uint32_t address = 0x8888;
|
||||
@@ -282,7 +282,7 @@ HWTEST_F(LriHelperTests, givenAddressAndOffsetAndNotRemapAndBlitterWhenHelperIsU
|
||||
|
||||
HWTEST_F(LriHelperTests, givenAddressAndOffsetAndRemapAndBlitterWhenHelperIsUsedThenProgramCmdStream) {
|
||||
using MI_LOAD_REGISTER_IMM = typename FamilyType::MI_LOAD_REGISTER_IMM;
|
||||
std::unique_ptr<uint8_t> buffer(new uint8_t[128]);
|
||||
auto buffer = std::make_unique<uint8_t[]>(128);
|
||||
|
||||
LinearStream stream(buffer.get(), 128);
|
||||
uint32_t address = 0x8888;
|
||||
@@ -305,7 +305,7 @@ using PipeControlHelperTests = ::testing::Test;
|
||||
|
||||
HWTEST_F(PipeControlHelperTests, givenPostSyncWriteTimestampModeWhenHelperIsUsedThenProperFieldsAreProgrammed) {
|
||||
using PIPE_CONTROL = typename FamilyType::PIPE_CONTROL;
|
||||
std::unique_ptr<uint8_t> buffer(new uint8_t[128]);
|
||||
auto buffer = std::make_unique<uint8_t[]>(128);
|
||||
|
||||
LinearStream stream(buffer.get(), 128);
|
||||
uint64_t address = 0x1234567887654321;
|
||||
@@ -347,7 +347,7 @@ HWTEST_F(PipeControlHelperTests, givenGfxCoreHelperwhenAskingForDcFlushThenRetur
|
||||
|
||||
HWTEST_F(PipeControlHelperTests, givenDcFlushNotAllowedWhenProgrammingPipeControlThenDontSetDcFlush) {
|
||||
using PIPE_CONTROL = typename FamilyType::PIPE_CONTROL;
|
||||
std::unique_ptr<uint8_t> buffer(new uint8_t[128]);
|
||||
auto buffer = std::make_unique<uint8_t[]>(128);
|
||||
|
||||
LinearStream stream(buffer.get(), 128);
|
||||
|
||||
@@ -364,7 +364,7 @@ HWTEST_F(PipeControlHelperTests, givenDcFlushNotAllowedWhenProgrammingPipeContro
|
||||
|
||||
HWTEST_F(PipeControlHelperTests, givenPostSyncWriteImmediateDataModeWhenHelperIsUsedThenProperFieldsAreProgrammed) {
|
||||
using PIPE_CONTROL = typename FamilyType::PIPE_CONTROL;
|
||||
std::unique_ptr<uint8_t> buffer(new uint8_t[128]);
|
||||
auto buffer = std::make_unique<uint8_t[]>(128);
|
||||
|
||||
LinearStream stream(buffer.get(), 128);
|
||||
uint64_t address = 0x1234567887654321;
|
||||
@@ -402,7 +402,7 @@ HWTEST_F(PipeControlHelperTests, givenPostSyncWriteImmediateDataModeWhenHelperIs
|
||||
|
||||
HWTEST_F(PipeControlHelperTests, givenNotifyEnableArgumentIsTrueWhenHelperIsUsedThenNotifyEnableFlagIsTrue) {
|
||||
using PIPE_CONTROL = typename FamilyType::PIPE_CONTROL;
|
||||
std::unique_ptr<uint8_t> buffer(new uint8_t[128]);
|
||||
auto buffer = std::make_unique<uint8_t[]>(128);
|
||||
|
||||
LinearStream stream(buffer.get(), 128);
|
||||
uint64_t address = 0x1234567887654321;
|
||||
@@ -455,7 +455,7 @@ HWTEST_F(PipeControlHelperTests, WhenIsDcFlushAllowedIsCalledThenCorrectResultIs
|
||||
|
||||
HWTEST_F(PipeControlHelperTests, WhenPipeControlPostSyncTimestampUsedThenCorrectPostSyncUsed) {
|
||||
using PIPE_CONTROL = typename FamilyType::PIPE_CONTROL;
|
||||
std::unique_ptr<uint8_t> buffer(new uint8_t[128]);
|
||||
auto buffer = std::make_unique<uint8_t[]>(128);
|
||||
|
||||
LinearStream stream(buffer.get(), 128);
|
||||
uint64_t address = 0x1234567887654320;
|
||||
@@ -473,7 +473,7 @@ HWTEST_F(PipeControlHelperTests, WhenPipeControlPostSyncTimestampUsedThenCorrect
|
||||
|
||||
HWTEST_F(PipeControlHelperTests, WhenPipeControlPostSyncWriteImmediateDataUsedThenCorrectPostSyncUsed) {
|
||||
using PIPE_CONTROL = typename FamilyType::PIPE_CONTROL;
|
||||
std::unique_ptr<uint8_t> buffer(new uint8_t[128]);
|
||||
auto buffer = std::make_unique<uint8_t[]>(128);
|
||||
|
||||
LinearStream stream(buffer.get(), 128);
|
||||
uint64_t address = 0x1234567887654320;
|
||||
@@ -1079,7 +1079,7 @@ HWTEST_F(PipeControlHelperTests, WhenGettingPipeControSizeForCacheFlushThenRetur
|
||||
|
||||
HWTEST_F(PipeControlHelperTests, WhenProgrammingCacheFlushThenExpectBasicFieldsSet) {
|
||||
using PIPE_CONTROL = typename FamilyType::PIPE_CONTROL;
|
||||
std::unique_ptr<uint8_t> buffer(new uint8_t[128]);
|
||||
auto buffer = std::make_unique<uint8_t[]>(128);
|
||||
|
||||
LinearStream stream(buffer.get(), 128);
|
||||
MockExecutionEnvironment mockExecutionEnvironment{};
|
||||
@@ -1106,7 +1106,7 @@ HWTEST_F(PipeControlHelperTests, WhenGettingPipeControSizeForInstructionCacheFlu
|
||||
|
||||
HWTEST_F(PipeControlHelperTests, WhenProgrammingInstructionCacheFlushThenExpectInstructionCacheInvalidateEnableFieldSet) {
|
||||
using PIPE_CONTROL = typename FamilyType::PIPE_CONTROL;
|
||||
std::unique_ptr<uint8_t> buffer(new uint8_t[128]);
|
||||
auto buffer = std::make_unique<uint8_t[]>(128);
|
||||
|
||||
LinearStream stream(buffer.get(), 128);
|
||||
MockExecutionEnvironment mockExecutionEnvironment{};
|
||||
|
||||
@@ -728,7 +728,7 @@ using LriHelperTestsXe2HpgCore = ::testing::Test;
|
||||
|
||||
XE2_HPG_CORETEST_F(LriHelperTestsXe2HpgCore, whenProgrammingLriCommandThenExpectMmioRemapEnableCorrectlySet) {
|
||||
using MI_LOAD_REGISTER_IMM = typename FamilyType::MI_LOAD_REGISTER_IMM;
|
||||
std::unique_ptr<uint8_t> buffer(new uint8_t[128]);
|
||||
auto buffer = std::make_unique<uint8_t[]>(128);
|
||||
|
||||
LinearStream stream(buffer.get(), 128);
|
||||
uint32_t address = 0x8888;
|
||||
|
||||
@@ -77,7 +77,7 @@ using LriHelperTestsXeHpgCore = ::testing::Test;
|
||||
|
||||
XE_HPG_CORETEST_F(LriHelperTestsXeHpgCore, whenProgrammingLriCommandThenExpectMmioRemapEnableCorrectlySet) {
|
||||
using MI_LOAD_REGISTER_IMM = typename FamilyType::MI_LOAD_REGISTER_IMM;
|
||||
std::unique_ptr<uint8_t> buffer(new uint8_t[128]);
|
||||
auto buffer = std::make_unique<uint8_t[]>(128);
|
||||
|
||||
LinearStream stream(buffer.get(), 128);
|
||||
uint32_t address = 0x8888;
|
||||
|
||||
Reference in New Issue
Block a user