mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
Remove usage of TestLegacy from opencl tests
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
44d218e52e
commit
bca852617c
@@ -23,7 +23,7 @@ extern const DeviceDescriptor NEO::deviceDescriptorTable[];
|
||||
|
||||
class DrmNullDeviceTestsFixture {
|
||||
public:
|
||||
void SetUp() { // NOLINT(readability-identifier-naming)
|
||||
void setUp() {
|
||||
if (deviceDescriptorTable[0].deviceId == 0) {
|
||||
GTEST_SKIP();
|
||||
}
|
||||
@@ -36,7 +36,7 @@ class DrmNullDeviceTestsFixture {
|
||||
ASSERT_NE(drmNullDevice, nullptr);
|
||||
}
|
||||
|
||||
void TearDown() { // NOLINT(readability-identifier-naming)
|
||||
void tearDown() {
|
||||
}
|
||||
|
||||
std::unique_ptr<DrmWrap, std::function<void(Drm *)>> drmNullDevice;
|
||||
@@ -46,7 +46,7 @@ class DrmNullDeviceTestsFixture {
|
||||
DebugManagerStateRestore dbgRestorer;
|
||||
};
|
||||
|
||||
typedef TestLegacy<DrmNullDeviceTestsFixture> DrmNullDeviceTests;
|
||||
typedef Test<DrmNullDeviceTestsFixture> DrmNullDeviceTests;
|
||||
|
||||
TEST_F(DrmNullDeviceTests, GIVENdrmNullDeviceWHENcallGetDeviceIdTHENreturnProperDeviceId) {
|
||||
int ret = drmNullDevice->queryDeviceIdAndRevision();
|
||||
|
||||
@@ -54,7 +54,7 @@ using namespace NEO;
|
||||
|
||||
class DrmTestsFixture {
|
||||
public:
|
||||
void SetUp() { // NOLINT(readability-identifier-naming)
|
||||
void setUp() {
|
||||
if (deviceDescriptorTable[0].deviceId == 0) {
|
||||
GTEST_SKIP();
|
||||
}
|
||||
@@ -63,13 +63,13 @@ class DrmTestsFixture {
|
||||
rootDeviceEnvironment = executionEnvironment.rootDeviceEnvironments[0].get();
|
||||
}
|
||||
|
||||
void TearDown() { // NOLINT(readability-identifier-naming)
|
||||
void tearDown() {
|
||||
}
|
||||
ExecutionEnvironment executionEnvironment;
|
||||
RootDeviceEnvironment *rootDeviceEnvironment = nullptr;
|
||||
};
|
||||
|
||||
typedef TestLegacy<DrmTestsFixture> DrmTests;
|
||||
typedef Test<DrmTestsFixture> DrmTests;
|
||||
|
||||
void initializeTestedDevice() {
|
||||
for (uint32_t i = 0; deviceDescriptorTable[i].deviceId != 0; i++) {
|
||||
|
||||
Reference in New Issue
Block a user