Refactor IOCTL statistics test

Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
This commit is contained in:
Lukasz Jobczyk
2021-10-04 10:16:31 +00:00
committed by Compute-Runtime-Automation
parent 560c951b8c
commit 7bc26e9f95

View File

@ -203,7 +203,6 @@ TEST_F(DrmSimpleTests, givenPrintIoctlTimesWhenCallIoctlThenStatisticsAreGathere
struct DrmMock : public Drm {
using Drm::ioctlStatistics;
};
::testing::internal::CaptureStdout();
constexpr long long initialMin = std::numeric_limits<long long>::max();
constexpr long long initialMax = 0;
@ -289,6 +288,8 @@ TEST_F(DrmSimpleTests, givenPrintIoctlTimesWhenCallIoctlThenStatisticsAreGathere
EXPECT_EQ(1u, destroyData->second.count);
EXPECT_NE(0, destroyData->second.totalTime);
::testing::internal::CaptureStdout();
delete drm;
std::string output = ::testing::internal::GetCapturedStdout();