Skip to content

Commit 8672360

Browse files
committed
Do not test global platform.
Change-Id: I3d6c1b9e9002d1913867db4930bcfefc5bb4a2fd
1 parent aa486c5 commit 8672360

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

unit_tests/helpers/validator_tests.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,8 @@ TEST(Platform, givenNullPlatformThenReturnInvalidPlatform) {
175175
}
176176

177177
TEST(Platform, givenPlatformThenReturnSUCCESS) {
178-
cl_platform_id clPlatformId = platform();
178+
Platform platform;
179+
cl_platform_id clPlatformId = &platform;
179180
EXPECT_EQ(CL_SUCCESS, validateObjects(clPlatformId));
180181
}
181182

0 commit comments

Comments
 (0)