Skip to content

Commit 0ff1a5c

Browse files
[NFC][SYCL] Change ExtOneapiBarrierOpt to use TEST_F (#20241)
This unit test failed in sycl-rel and internal CI (see https://github.com/intel/llvm/actions/runs/18096621667/job/51489057567) because the test is using members of class `ExtOneapiBarrierOptTest`, and these members need to be re-initialized in between two test runs. `TEST_F` does exactly that.
1 parent 2872f24 commit 0ff1a5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sycl/unittests/Extensions/ExtOneapiBarrierOpt.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class ExtOneapiBarrierOptTest : public ::testing::Test {
3636
// Check that ext_oneapi_submit_barrier works fine in the scenarios
3737
// when provided waitlist consists of only empty events.
3838
// Tets for https://github.com/intel/llvm/pull/12951
39-
TEST(ExtOneapiBarrierOptTest, EmptyEventTest) {
39+
TEST_F(ExtOneapiBarrierOptTest, EmptyEventTest) {
4040
sycl::queue q1{{sycl::property::queue::in_order()}};
4141

4242
mock::getCallbacks().set_after_callback(

0 commit comments

Comments
 (0)