Skip to content

Commit 5fdd853

Browse files
fix test for validateObjects
Change-Id: I5aa4dd47b6c406b62807d671a8b40676c21d4127
1 parent 73b7334 commit 5fdd853

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

unit_tests/helpers/validator_tests.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
#include "runtime/helpers/error_mappers.h"
2626
#include "runtime/helpers/ptr_math.h"
2727
#include "runtime/helpers/validators.h"
28+
#include "runtime/platform/platform.h"
2829
#include "unit_tests/mocks/mock_context.h"
2930
#include "gtest/gtest.h"
3031

@@ -149,8 +150,8 @@ TEST(Platform, givenNullPlatformThenReturnInvalidPlatform) {
149150
}
150151

151152
TEST(Platform, givenPlatformThenReturnSUCCESS) {
152-
_cl_platform_id clPlatform;
153-
EXPECT_EQ(CL_SUCCESS, validateObjects(clPlatform));
153+
cl_platform_id clPlatformId = platform();
154+
EXPECT_EQ(CL_SUCCESS, validateObjects(clPlatformId));
154155
}
155156

156157
typedef ::testing::TestWithParam<size_t> PatternSizeValid;

0 commit comments

Comments
 (0)