mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-07 21:27:04 +08:00
ULT renaming: Utilities 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
5a35fc326c
commit
024012c66c
@@ -13,7 +13,6 @@ target_sources(${TARGET_NAME} PRIVATE
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/cpuinfo_tests.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/cpuintrinsics_tests.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/destructor_counted.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/directory_tests.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/heap_allocator_tests.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/io_functions_tests.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/numeric_tests.cpp
|
||||
|
||||
@@ -208,7 +208,7 @@ TEST(ConstStringRefTruncated, GivenNegativeLengthThenCountFromRight) {
|
||||
EXPECT_EQ(7U, substr.length());
|
||||
}
|
||||
|
||||
TEST(ConstStringRefEqualsCaseInsesitive, WhenSizesDifferReturnFalse) {
|
||||
TEST(ConstStringRefEqualsCaseInsesitive, WhenSizesDifferThenReturnFalse) {
|
||||
ConstStringRef lhs = ConstStringRef::fromArray("\0");
|
||||
ConstStringRef rhs = ConstStringRef::fromArray("\0\0");
|
||||
EXPECT_FALSE(equalsCaseInsensitive(lhs, rhs));
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2018-2020 Intel Corporation
|
||||
* Copyright (C) 2018-2021 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -579,7 +579,7 @@ TEST(IDList, GivenNonThreadSafeWhenPushingOneThenResultIsCorrect) {
|
||||
iDListTestPushOne<false>();
|
||||
}
|
||||
|
||||
TEST(IDList, WhenResettingTheListIsEmpty) {
|
||||
TEST(IDList, WhenResettingThenListIsEmpty) {
|
||||
DummyDNode *nodes[7];
|
||||
uint32_t destructorCounter = 0;
|
||||
makeList(nodes, &destructorCounter);
|
||||
|
||||
@@ -1,30 +0,0 @@
|
||||
/*
|
||||
* Copyright (C) 2017-2020 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
*/
|
||||
|
||||
#include "shared/source/utilities/directory.h"
|
||||
|
||||
#include "test.h"
|
||||
|
||||
#include "gtest/gtest.h"
|
||||
|
||||
#include <cstdio>
|
||||
#include <fstream>
|
||||
|
||||
using namespace NEO;
|
||||
|
||||
TEST(Directory, GetFiles) {
|
||||
std::ofstream tempfile("temp_file_that_does_not_exist.tmp");
|
||||
tempfile << " ";
|
||||
tempfile.flush();
|
||||
tempfile.close();
|
||||
|
||||
std::string path = ".";
|
||||
std::vector<std::string> files = Directory::getFiles(path);
|
||||
|
||||
EXPECT_LT(0u, files.size());
|
||||
std::remove("temp_file_that_does_not_exist.tmp");
|
||||
}
|
||||
Reference in New Issue
Block a user