mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
fix test for validateObjects
Change-Id: I5aa4dd47b6c406b62807d671a8b40676c21d4127
This commit is contained in:

committed by
sys_ocldev

parent
73b733440d
commit
5fdd853506
@ -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;
|
||||
|
Reference in New Issue
Block a user