mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
Refactor IOCTL statistics test
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
This commit is contained in:

committed by
Compute-Runtime-Automation

parent
560c951b8c
commit
7bc26e9f95
@ -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();
|
||||
|
Reference in New Issue
Block a user