Fix broken IBM OEM Unit tests
Tested Log:
ninja: no work to do.
1/28 libpldm_base_test OK 0.05s
2/28 libpldm_platform_test OK 0.04s
3/28 libpldm_bios_test OK 0.04s
4/28 libpldm_fru_test OK 0.03s
5/28 libpldm_utils_test OK 0.02s
6/28 libpldm_pdr_test OK 0.02s
7/28 ../../oem/ibm/test/libpldm_fileio_test OK 0.05s
8/28 ../../oem/ibm/test/libpldm_host_test OK 0.05s
9/28 libpldmresponder_base_test OK 0.05s
10/28 libpldmresponder_bios_test OK 0.04s
11/28 libpldmresponder_bios_attribute_test OK 0.04s
12/28 libpldmresponder_bios_string_attribute_test OK 0.06s
13/28 libpldmresponder_bios_integer_attribute_test OK 0.06s
14/28 libpldmresponder_bios_config_test OK 0.07s
15/28 libpldmresponder_bios_enum_attribute_test OK 0.06s
16/28 libpldmresponder_pdr_effecter_test OK 0.06s
17/28 libpldmresponder_pdr_sensor_test OK 0.05s
18/28 libpldmresponder_bios_table_test OK 0.07s
19/28 pldmd_instanceid_test OK 0.05s
20/28 pldmd_registration_test OK 0.05s
21/28 libpldmresponder_platform_test OK 0.07s
22/28 pldm_utils_test OK 0.05s
23/28 libpldmresponder_fru_test OK 0.04s
24/28 libpldmresponder_dbus_to_host_effecter_test OK 0.04s
25/28 ../oem/ibm/test/libpldmresponder_oem_platform_test OK 0.02s
26/28 ../oem/ibm/test/host_bmc_lamp_test OK 0.02s
27/28 ../oem/ibm/test/libpldmresponder_fileio_test OK 0.04s
28/28 libpldm_bios_table_test OK 2.14s
Ok: 28
Expected Fail: 0
Fail: 0
Unexpected Pass: 0
Skipped: 0
Timeout: 0
Signed-off-by: Manojkiran Eda <manojkiran.eda@gmail.com>
Change-Id: Iaacbefffebee252f0588db267c3e26f583a9edba
diff --git a/oem/ibm/libpldmresponder/oem_ibm_handler.hpp b/oem/ibm/libpldmresponder/oem_ibm_handler.hpp
index b574262..ee1081e 100644
--- a/oem/ibm/libpldmresponder/oem_ibm_handler.hpp
+++ b/oem/ibm/libpldmresponder/oem_ibm_handler.hpp
@@ -80,7 +80,7 @@
* @return platformHandler->getNextEffecterId() - returns the
* effecter ID from the platform handler
*/
- uint16_t getNextEffecterId()
+ virtual uint16_t getNextEffecterId()
{
return platformHandler->getNextEffecterId();
}
@@ -90,7 +90,7 @@
* @return platformHandler->getNextSensorId() - returns the
* Sensor ID from the platform handler
*/
- uint16_t getNextSensorId()
+ virtual uint16_t getNextSensorId()
{
return platformHandler->getNextSensorId();
}