test: fix power10-mode compile errors
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I44a90cfbca3804de4a7fe169fa567a4672a48e78
diff --git a/test/utest.cpp b/test/utest.cpp
index cf3401a..89a3d6e 100644
--- a/test/utest.cpp
+++ b/test/utest.cpp
@@ -16,7 +16,13 @@
public:
VerifyOccInput() :
rc(sd_event_default(&event)), eventP(event), manager(eventP),
- occStatus(eventP, "/test/path/occ1", manager), pcap(occStatus)
+ occStatus(eventP, "/test/path/occ1", manager
+#ifdef POWER10
+ ,
+ powerMode
+#endif
+ ),
+ pcap(occStatus)
{
EXPECT_GE(rc, 0);
event = nullptr;
@@ -29,6 +35,9 @@
Manager manager;
Status occStatus;
+#ifdef POWER10
+ std::unique_ptr<powermode::PowerMode> powerMode = nullptr;
+#endif
powercap::PowerCap pcap;
};