Adjust error handling in the clAddCommentINTEL

Related-To: NEO-3047

Change-Id: Ic9ecfff8358c43a37a1c4ea4ccf4aec8d09acde8
Signed-off-by: Jobczyk, Lukasz <lukasz.jobczyk@intel.com>
This commit is contained in:
Jobczyk, Lukasz
2019-04-04 17:13:50 +02:00
parent 37bcc99cd2
commit e926a6d037
2 changed files with 8 additions and 8 deletions

View File

@@ -14,17 +14,17 @@ using namespace NEO;
namespace ULT {
TEST(clAddCommentToAubTest, givenProperCommentNullptrAubCenterWhenAddCommentToAubThenSuccessIsReturned) {
auto retVal = clAddCommentINTEL("comment");
EXPECT_EQ(CL_SUCCESS, retVal);
}
TEST(clAddCommentToAubTest, givenNullptrCommentWhenAddCommentToAubThenErrorIsReturned) {
auto retVal = clAddCommentINTEL(nullptr);
EXPECT_EQ(CL_INVALID_VALUE, retVal);
}
TEST(clAddCommentToAubTest, givenProperCommentAndNullptrAubCenterWhenAddCommentToAubThenErrorIsReturned) {
auto retVal = clAddCommentINTEL("comment");
EXPECT_EQ(CL_INVALID_VALUE, retVal);
}
TEST(clAddCommentToAubTest, givenProperCommentAndAubCenterButNullptrAubManagerWhenAddCommentToAubThenErrorIsReturned) {
TEST(clAddCommentToAubTest, givenAubCenterAndProperCommentButNullptrAubManagerWhenAddCommentToAubThenErrorIsReturned) {
auto executionEnvironment = platform()->peekExecutionEnvironment();
executionEnvironment->aubCenter.reset(new MockAubCenter());