From 86723607669c77d4191f776a424b57089507902b Mon Sep 17 00:00:00 2001 From: "Mrozek, Michal" Date: Tue, 26 Jun 2018 12:53:40 +0200 Subject: [PATCH] Do not test global platform. Change-Id: I3d6c1b9e9002d1913867db4930bcfefc5bb4a2fd --- unit_tests/helpers/validator_tests.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/unit_tests/helpers/validator_tests.cpp b/unit_tests/helpers/validator_tests.cpp index 67552500a2..05ef6af509 100644 --- a/unit_tests/helpers/validator_tests.cpp +++ b/unit_tests/helpers/validator_tests.cpp @@ -175,7 +175,8 @@ TEST(Platform, givenNullPlatformThenReturnInvalidPlatform) { } TEST(Platform, givenPlatformThenReturnSUCCESS) { - cl_platform_id clPlatformId = platform(); + Platform platform; + cl_platform_id clPlatformId = &platform; EXPECT_EQ(CL_SUCCESS, validateObjects(clPlatformId)); }