mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
ULT renaming: Compiler Interface tests
Related-To: NEO-2236 Signed-off-by: Adam Cetnerowski <adam.cetnerowski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
bb5d252c4d
commit
0e52c6b08d
@@ -1191,7 +1191,7 @@ TEST_F(CompilerInterfaceTest, givenCompilerInterfaceWhenGetSpecializationConstan
|
||||
EXPECT_EQ(TranslationOutput::ErrorCode::Success, err);
|
||||
}
|
||||
|
||||
TEST(TranslationOutput, giveNonEmptyPointerAndSizeMakeCopyWillCloneInputData) {
|
||||
TEST(TranslationOutput, givenNonEmptyPointerAndSizeWhenMakingCopyThenCloneInputData) {
|
||||
MockCIFBuffer src;
|
||||
src.data.assign({2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37});
|
||||
|
||||
@@ -1207,7 +1207,7 @@ TEST(TranslationOutput, giveNonEmptyPointerAndSizeMakeCopyWillCloneInputData) {
|
||||
EXPECT_EQ(0, memcmp(src.GetMemory<void>(), dstBuffer.mem.get(), dstBuffer.size));
|
||||
}
|
||||
|
||||
TEST(TranslationOutput, givenNullPointerMakeCopyWillClearOutOutput) {
|
||||
TEST(TranslationOutput, givenNullPointerWhenMakingCopyThenClearOutOutput) {
|
||||
MockCIFBuffer src;
|
||||
src.data.assign({2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37});
|
||||
|
||||
@@ -1228,7 +1228,7 @@ TEST(TranslationOutput, givenNullPointerMakeCopyWillClearOutOutput) {
|
||||
EXPECT_EQ(nullptr, dstBuffer.mem);
|
||||
}
|
||||
|
||||
TEST(TranslationOutput, givenZeroSizeMakeCopyWillClearOutOutput) {
|
||||
TEST(TranslationOutput, givenZeroSizeWhenMakingCopyThenClearOutOutput) {
|
||||
MockCIFBuffer src;
|
||||
src.data.assign({2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37});
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2019-2020 Intel Corporation
|
||||
* Copyright (C) 2019-2021 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -1094,12 +1094,12 @@ TEST(LinkerErrorMessageTests, givenListOfUnresolvedExternalsThenSymbolNameOrSymb
|
||||
EXPECT_THAT(err.c_str(), ::testing::HasSubstr(std::to_string(unresolvedExternal.unresolvedRelocation.offset).c_str()));
|
||||
}
|
||||
|
||||
TEST(RelocationsDebugMessageTests, givenEmptyListOfRelocatedSymbolsTheReturnsEmptyString) {
|
||||
TEST(RelocationsDebugMessageTests, givenEmptyListOfRelocatedSymbolsThenReturnsEmptyString) {
|
||||
auto message = NEO::constructRelocationsDebugMessage({});
|
||||
EXPECT_EQ(0U, message.size()) << message;
|
||||
}
|
||||
|
||||
TEST(RelocationsDebugMessageTests, givenListOfRelocatedSymbolsTheReturnsProperDebugMessage) {
|
||||
TEST(RelocationsDebugMessageTests, givenListOfRelocatedSymbolsThenReturnProperDebugMessage) {
|
||||
NEO::Linker::RelocatedSymbolsMap symbols;
|
||||
|
||||
auto &funcSymbol = symbols["foo"];
|
||||
|
||||
Reference in New Issue
Block a user