mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-08 14:02:58 +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 {
|
struct DrmMock : public Drm {
|
||||||
using Drm::ioctlStatistics;
|
using Drm::ioctlStatistics;
|
||||||
};
|
};
|
||||||
::testing::internal::CaptureStdout();
|
|
||||||
|
|
||||||
constexpr long long initialMin = std::numeric_limits<long long>::max();
|
constexpr long long initialMin = std::numeric_limits<long long>::max();
|
||||||
constexpr long long initialMax = 0;
|
constexpr long long initialMax = 0;
|
||||||
@@ -289,6 +288,8 @@ TEST_F(DrmSimpleTests, givenPrintIoctlTimesWhenCallIoctlThenStatisticsAreGathere
|
|||||||
EXPECT_EQ(1u, destroyData->second.count);
|
EXPECT_EQ(1u, destroyData->second.count);
|
||||||
EXPECT_NE(0, destroyData->second.totalTime);
|
EXPECT_NE(0, destroyData->second.totalTime);
|
||||||
|
|
||||||
|
::testing::internal::CaptureStdout();
|
||||||
|
|
||||||
delete drm;
|
delete drm;
|
||||||
|
|
||||||
std::string output = ::testing::internal::GetCapturedStdout();
|
std::string output = ::testing::internal::GetCapturedStdout();
|
||||||
|
|||||||
Reference in New Issue
Block a user