sensor: add missing header for sdbusplus::bus::match
Telemetry doesn't seem to compile with the latest version of sdbusplus
because of a missing header file. Add this in.
Also, recently sdbusplus added short-named aliases for many types, so
switch match::match to just match_t.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I4946edfa39db741bab8e30ffd77f03bf59c4d6f3
diff --git a/tests/src/test_report.cpp b/tests/src/test_report.cpp
index f5f84c1..ccdcce8 100644
--- a/tests/src/test_report.cpp
+++ b/tests/src/test_report.cpp
@@ -532,14 +532,14 @@
void makeMonitor()
{
- monitor = std::make_unique<sdbusplus::bus::match::match>(
+ monitor = std::make_unique<sdbusplus::bus::match_t>(
*DbusEnvironment::getBus(),
sdbusplus::bus::match::rules::propertiesChanged(
sut->getPath(), Report::reportIfaceName),
[this](auto& msg) { monitorProc(msg); });
}
- std::unique_ptr<sdbusplus::bus::match::match> monitor;
+ std::unique_ptr<sdbusplus::bus::match_t> monitor;
MockFunction<void()> readingsUpdated;
};