fix test for validateObjects

Change-Id: I5aa4dd47b6c406b62807d671a8b40676c21d4127
This commit is contained in:
Jacek Danecki
2018-04-11 17:29:23 +02:00
committed by sys_ocldev
parent 73b733440d
commit 5fdd853506

View File

@ -25,6 +25,7 @@
#include "runtime/helpers/error_mappers.h"
#include "runtime/helpers/ptr_math.h"
#include "runtime/helpers/validators.h"
#include "runtime/platform/platform.h"
#include "unit_tests/mocks/mock_context.h"
#include "gtest/gtest.h"
@ -149,8 +150,8 @@ TEST(Platform, givenNullPlatformThenReturnInvalidPlatform) {
}
TEST(Platform, givenPlatformThenReturnSUCCESS) {
_cl_platform_id clPlatform;
EXPECT_EQ(CL_SUCCESS, validateObjects(clPlatform));
cl_platform_id clPlatformId = platform();
EXPECT_EQ(CL_SUCCESS, validateObjects(clPlatformId));
}
typedef ::testing::TestWithParam<size_t> PatternSizeValid;