Skip to content

Commit c9fd72c

Browse files
author
Artem Gindinson
authored
[SYCL] Enforce "construct from platform" mock test execution (#1738)
The case was not being run due to platforms' default construction as host platforms. Signed-off-by: Artem Gindinson <[email protected]>
1 parent b1c0e65 commit c9fd72c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sycl/unittests/pi/PiMock.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,12 @@ TEST(PiMockTest, ConstructFromQueue) {
4747
}
4848

4949
TEST(PiMockTest, ConstructFromPlatform) {
50-
platform NormalPlatform;
50+
platform NormalPlatform(default_selector{});
5151
if (NormalPlatform.is_host()) {
5252
std::cerr << "Not run due to host-only environment\n";
5353
return;
5454
}
55-
platform MockPlatform;
55+
platform MockPlatform(default_selector{});
5656
unittest::PiMock Mock(MockPlatform);
5757

5858
const auto &NormalPiPlugin =

0 commit comments

Comments
 (0)