Address Valgrind issues in CI
Fixes "uninitialized values" errors reported by Valgrind. Problem
occurred from lack of specializations of googletest's PrintTo functions
for several custom types.
Tested:
On local CI container. After applying this patch issues stopped
appearing.
Change-Id: I98d9fd19724bee15add7b19422a9ddc2e4cbef09
Signed-off-by: Michal Orzel <michalx.orzel@intel.com>
diff --git a/tests/src/test_report.cpp b/tests/src/test_report.cpp
index 31d49c5..10ba120 100644
--- a/tests/src/test_report.cpp
+++ b/tests/src/test_report.cpp
@@ -898,6 +898,16 @@
ReportParams reportParams;
std::vector<ReadingData> expectedReadings;
bool expectedEnabled;
+
+ friend void PrintTo(const ReportUpdatesReportParams& params,
+ std::ostream* os)
+ {
+ *os << "{ ReportParams: ";
+ PrintTo(params.reportParams, os);
+ *os << ", ExpectedReadings: ";
+ PrintTo(params.expectedReadings, os);
+ *os << ", ExpectedEnabled: " << params.expectedEnabled << " }";
+ }
};
class TestReportWithReportUpdatesAndLimit :