Skip to content

Commit 35a1ce9

Browse files
authored
[SYCL] Avoid unused variable warning in CommandsWaitForEvents (#7287)
1 parent 92c23b1 commit 35a1ce9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sycl/unittests/scheduler/CommandsWaitForEvents.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ TEST_F(SchedulerTest, StreamAUXCmdsWait) {
190190
pi_event PIEvent = nullptr;
191191
pi_result Res =
192192
mock_piEventCreate(/*context = */ (pi_context)0x1, &PIEvent);
193-
assert(PI_SUCCESS == Res);
193+
ASSERT_TRUE(PI_SUCCESS == Res);
194194

195195
auto EventImpl = std::make_shared<sycl::detail::event_impl>(QueueImpl);
196196
EventImpl->getHandleRef() = PIEvent;

0 commit comments

Comments
 (0)