File tree 1 file changed +10
-3
lines changed
test/conformance/testing/include/uur
1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -263,15 +263,22 @@ template <class T> struct urSamplerTestWithParam : urContextTestWithParam<T> {
263
263
UR_SAMPLER_ADDRESSING_MODE_CLAMP, /* addressing mode */
264
264
UR_SAMPLER_FILTER_MODE_LINEAR, /* filterMode */
265
265
};
266
- ASSERT_SUCCESS (urSamplerCreate (this ->context , &sampler_desc, &sampler));
266
+ auto ret = urSamplerCreate (this ->context , &sampler_desc, &sampler);
267
+ if (ret == UR_RESULT_ERROR_UNSUPPORTED_FEATURE ||
268
+ ret == UR_RESULT_ERROR_UNINITIALIZED) {
269
+ GTEST_SKIP () << " urSamplerCreate not supported" ;
270
+ }
267
271
}
268
272
269
273
void TearDown () override {
270
- EXPECT_SUCCESS (urSamplerRelease (sampler));
274
+ if (sampler) {
275
+ EXPECT_SUCCESS (urSamplerRelease (sampler));
276
+ }
277
+
271
278
UUR_RETURN_ON_FATAL_FAILURE (urContextTestWithParam<T>::TearDown ());
272
279
}
273
280
274
- ur_sampler_handle_t sampler;
281
+ ur_sampler_handle_t sampler = nullptr ;
275
282
ur_sampler_desc_t sampler_desc;
276
283
};
277
284
You can’t perform that action at this time.
0 commit comments