mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-27 07:44:16 +08:00
Remove unnecessary code.
- There is not need to capture stream anymore. - This may hide potential problems. Change-Id: I0fdb3752ef7684a95aaf8e29b2c4394722ff0aa3
This commit is contained in:
committed by
sys_ocldev
parent
a93154db1b
commit
cfe1f72dcb
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user