Skip to content

Commit 8813ace

Browse files
committed
Remove unrealiable test case
This commit removes a test case where the default handler would be used if the queue dies. This test case was unreliable as there was no way to ensure that the runtime was not keeping the queue alive for internal reasons. Signed-off-by: Larsen, Steffen <[email protected]>
1 parent f8237d4 commit 8813ace

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

sycl/test-e2e/AsyncHandler/default_async_handler.cpp

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -40,24 +40,6 @@ int main(int argc, char *argv[]) {
4040
});
4141
Q.wait();
4242
Q.throw_asynchronous();
43-
} else if (TestRun == 3) {
44-
auto TmpQAsyncHandler = [](exception_list) {
45-
std::cout << "Custom queue async handler was called!" << std::endl;
46-
};
47-
std::optional<queue> TmpQ = queue{default_selector_v, TmpQAsyncHandler};
48-
event E = TmpQ->submit([&](handler &CGH) {
49-
CGH.host_task([=]() {
50-
throw std::runtime_error("Exception thrown from host_task through "
51-
"event::wait_and_throw() after queue death.");
52-
});
53-
});
54-
// Ensure all work on the queue has finished so it isn't being kept
55-
// artificially alive. Then kill the queue.
56-
TmpQ->wait();
57-
TmpQ.reset();
58-
// Waiting on the event should no longer be able to reach the queue's
59-
// handler.
60-
E.wait_and_throw();
6143
}
6244
return 0;
6345
}

0 commit comments

Comments
 (0)