Remove unnecessary code.

- There is not need to capture stream anymore.
- This may hide potential problems.

Change-Id: I0fdb3752ef7684a95aaf8e29b2c4394722ff0aa3
This commit is contained in:
Mrozek, Michal
2018-03-05 13:57:38 +01:00
committed by sys_ocldev
parent a93154db1b
commit cfe1f72dcb
3 changed files with 0 additions and 14 deletions

View File

@@ -108,11 +108,9 @@ TEST_F(DrmBufferObjectTest, givenDrmWithCoherencyPatchActiveWhenExecIsCalledWith
}
TEST_F(DrmBufferObjectTest, exec_ioctlFailed) {
testing::internal::CaptureStderr();
mock->ioctl_expected = 1;
mock->ioctl_res = -1;
EXPECT_THROW(bo->exec(0, 0, 0), std::exception);
testing::internal::GetCapturedStderr();
}
TEST_F(DrmBufferObjectTest, setTiling_success) {
@@ -194,7 +192,6 @@ TEST_F(DrmBufferObjectTest, onPinBBhasOnlyBbEndAndNoForceNonCoherent) {
TEST_F(DrmBufferObjectTest, onPinIoctlFailed) {
std::unique_ptr<uint32_t[]> buff(new uint32_t[1024]);
testing::internal::CaptureStderr();
mock->ioctl_expected = 1;
mock->ioctl_res = -1;
@@ -204,6 +201,4 @@ TEST_F(DrmBufferObjectTest, onPinIoctlFailed) {
bo->setAddress(buff.get());
auto ret = bo->pin(boToPin.get());
EXPECT_EQ(mock->ioctl_res, ret);
testing::internal::GetCapturedStderr();
}