Skip to content

Commit ae350a6

Browse files
committed
Remove urDeviceRelease calls causing new crashes.
1 parent c8d521e commit ae350a6

File tree

3 files changed

+0
-17
lines changed

3 files changed

+0
-17
lines changed

test/conformance/source/environment.cpp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -152,16 +152,6 @@ void DevicesEnvironment::SetUp() {
152152
}
153153
}
154154

155-
void DevicesEnvironment::TearDown() {
156-
PlatformEnvironment::TearDown();
157-
for (auto device_tuple : devices) {
158-
if (urDeviceRelease(device_tuple.device)) {
159-
error = "urDeviceRelease() failed";
160-
return;
161-
}
162-
}
163-
}
164-
165155
KernelsEnvironment *KernelsEnvironment::instance = nullptr;
166156

167157
KernelsEnvironment::KernelsEnvironment(int argc, char **argv,

test/conformance/testing/include/uur/environment.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ struct DevicesEnvironment : PlatformEnvironment {
4848
virtual ~DevicesEnvironment() override = default;
4949

5050
virtual void SetUp() override;
51-
virtual void TearDown() override;
5251

5352
inline const std::vector<DeviceTuple> &GetDevices() const { return devices; }
5453

test/conformance/testing/include/uur/fixtures.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,6 @@ struct urAllDevicesTest : urPlatformTest {
9090
}
9191

9292
void TearDown() override {
93-
for (auto &device : devices) {
94-
EXPECT_SUCCESS(urDeviceRelease(device));
95-
}
9693
UUR_RETURN_ON_FATAL_FAILURE(urPlatformTest::TearDown());
9794
}
9895

@@ -160,9 +157,6 @@ struct urAllDevicesTestWithParam : urPlatformTestWithParam<T> {
160157
}
161158

162159
void TearDown() override {
163-
for (auto &device : devices) {
164-
EXPECT_SUCCESS(urDeviceRelease(device));
165-
}
166160
UUR_RETURN_ON_FATAL_FAILURE(urPlatformTestWithParam<T>::TearDown());
167161
}
168162

0 commit comments

Comments
 (0)