fix resolution issue with duplicate callouts
If two resolutions end up calling out the same part or procedure, only
the callout with the high priority should be added to the callout list.
This worked for the most. However, it did not take into account that the
guard action may have changed between callouts.
Change-Id: I1d42cdfcbac58086cdb54850f5b16aa686a3eb38
Signed-off-by: Zane Shelley <zshelle@us.ibm.com>
diff --git a/test/test-chnl-timeout.cpp b/test/test-chnl-timeout.cpp
index 711d193..b8cf8fd 100644
--- a/test/test-chnl-timeout.cpp
+++ b/test/test-chnl-timeout.cpp
@@ -39,7 +39,9 @@
s = R"([
{
"Deconfigured": false,
- "Guarded": false,
+ "EntityPath": [],
+ "GuardType": "GARD_Unrecoverable",
+ "Guarded": true,
"LocationCode": "/proc0/pib/perv12/mc0/mi0/mcc0/omi0",
"Priority": "H"
},
@@ -105,7 +107,9 @@
s = R"([
{
"Deconfigured": false,
- "Guarded": false,
+ "EntityPath": [],
+ "GuardType": "GARD_Unrecoverable",
+ "Guarded": true,
"LocationCode": "/proc0/pib/perv12/mc0/mi0/mcc0/omi0",
"Priority": "H"
},
@@ -178,7 +182,9 @@
},
{
"Deconfigured": false,
- "Guarded": false,
+ "EntityPath": [],
+ "GuardType": "GARD_Unrecoverable",
+ "Guarded": true,
"LocationCode": "/proc0/pib/perv12/mc0/mi0/mcc0/omi0/ocmb0",
"Priority": "H"
},
@@ -244,7 +250,9 @@
},
{
"Deconfigured": false,
- "Guarded": false,
+ "EntityPath": [],
+ "GuardType": "GARD_Unrecoverable",
+ "Guarded": true,
"LocationCode": "/proc0/pib/perv12/mc0/mi0/mcc0/omi0/ocmb0",
"Priority": "H"
},