ULT renaming: OS Interface tests

Related-To: NEO-2236

Change-Id: Ibde858174cf85e4491450b4b63b86bebc7d709c2
Signed-off-by: Adam Cetnerowski <adam.cetnerowski@intel.com>
This commit is contained in:
Adam Cetnerowski
2020-06-18 17:40:36 +02:00
committed by sys_ocldev
parent cf4a193184
commit a9c2840770
2 changed files with 5 additions and 5 deletions

View File

@@ -36,12 +36,12 @@ TEST(OSLibraryTest, whenLibraryNameIsEmptyThenCurrentProcesIsUsedAsLibrary) {
EXPECT_NE(nullptr, ptr);
}
TEST(OSLibraryTest, CreateFake) {
TEST(OSLibraryTest, GivenFakeLibNameWhenLoadingLibraryThenNullIsReturned) {
OsLibrary *library = OsLibrary::load(fakeLibName);
EXPECT_EQ(nullptr, library);
}
TEST(OSLibraryTest, whenLibraryNameIsValidThenLibraryIsLoadedCorrectly) {
TEST(OSLibraryTest, GivenValidLibNameWhenLoadingLibraryThenLibraryIsLoaded) {
std::unique_ptr<OsLibrary> library(OsLibrary::load(Os::testDllName));
EXPECT_NE(nullptr, library);
}
@@ -62,7 +62,7 @@ TEST(OSLibraryTest, whenSymbolNameIsInvalidThenGetProcAddressReturnsNullPointer)
using OsLibraryTestWithFailureInjection = Test<MemoryManagementFixture>;
TEST_F(OsLibraryTestWithFailureInjection, testFailNew) {
TEST_F(OsLibraryTestWithFailureInjection, GivenFailureInjectionWhenLibraryIsLoadedThenOnlyFailedAllocationIsNull) {
InjectedFunction method = [](size_t failureIndex) {
std::string libName(Os::testDllName);