diff options
author | Matt Spinler <spinler@us.ibm.com> | 2019-11-01 10:48:36 -0500 |
---|---|---|
committer | Matt Spinler <spinler@us.ibm.com> | 2019-11-04 16:18:29 -0600 |
commit | e07f915b21c5915574d03f9c9b7527084da4abe6 (patch) | |
tree | e6a6c6eb9987ce3ef5a8e0c2b581af2c93b2a550 /test | |
parent | 97d19b4806101161c5a97c1cc4daab6b95c89984 (diff) | |
download | phosphor-logging-e07f915b21c5915574d03f9c9b7527084da4abe6.tar.gz phosphor-logging-e07f915b21c5915574d03f9c9b7527084da4abe6.zip |
PEL: Make action flags optional in the registry
A future commit will fill in the field if it isn't
present.
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
Change-Id: I67371433162ce2198a362796d274695a1bd6a6dc
Diffstat (limited to 'test')
-rw-r--r-- | test/openpower-pels/registry_test.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test/openpower-pels/registry_test.cpp b/test/openpower-pels/registry_test.cpp index a16370f..7105c82 100644 --- a/test/openpower-pels/registry_test.cpp +++ b/test/openpower-pels/registry_test.cpp @@ -16,7 +16,6 @@ const auto registryData = R"( { "Name": "xyz.openbmc_project.Power.Fault", "Subsystem": "power_supply", - "ActionFlags": ["service_action", "report"], "SRC": { @@ -105,7 +104,7 @@ TEST_F(RegistryTest, TestFindEntry) EXPECT_EQ(entry->subsystem, 0x62); EXPECT_EQ(*(entry->severity), 0x40); EXPECT_EQ(*(entry->mfgSeverity), 0x00); - EXPECT_EQ(entry->actionFlags, 0xA800); + EXPECT_EQ(*(entry->actionFlags), 0xA800); EXPECT_EQ(*(entry->mfgActionFlags), 0x4000); EXPECT_EQ(entry->componentID, 0x2300); EXPECT_FALSE(entry->eventType); @@ -148,7 +147,7 @@ TEST_F(RegistryTest, TestFindEntryMinimal) EXPECT_FALSE(entry->severity); EXPECT_FALSE(entry->mfgSeverity); EXPECT_FALSE(entry->mfgActionFlags); - EXPECT_EQ(entry->actionFlags, 0xA000); + EXPECT_FALSE(entry->actionFlags); EXPECT_EQ(entry->componentID, 0x2000); EXPECT_FALSE(entry->eventType); EXPECT_FALSE(entry->eventScope); |