summaryrefslogtreecommitdiffstats
path: root/src/usr/testcore/lib/shared_ptr.H
diff options
context:
space:
mode:
authorMatt Derksen <v2cibmd@us.ibm.com>2016-05-16 12:18:28 -0500
committerWilliam G. Hoffa <wghoffa@us.ibm.com>2016-05-24 10:42:04 -0400
commitb76979b8c125bacdd428deed9bbcb5a6afdc7baf (patch)
treed84a70fbc7ba29e7704c05ba79d02fc21f235c34 /src/usr/testcore/lib/shared_ptr.H
parentd36fdebd86df6f684aa9fecebf2008fd8715d697 (diff)
downloadtalos-hostboot-b76979b8c125bacdd428deed9bbcb5a6afdc7baf.tar.gz
talos-hostboot-b76979b8c125bacdd428deed9bbcb5a6afdc7baf.zip
Added equal comparison override for shared_ptr
Change-Id: I7a9358001bd7a99735fc52bb6b8af21be3df45a6 RTC:133837 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/24605 Tested-by: Jenkins Server Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com> Tested-by: FSP CI Jenkins Reviewed-by: Andres A. Lugo-Reyes <aalugore@us.ibm.com> Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com>
Diffstat (limited to 'src/usr/testcore/lib/shared_ptr.H')
-rw-r--r--src/usr/testcore/lib/shared_ptr.H7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/usr/testcore/lib/shared_ptr.H b/src/usr/testcore/lib/shared_ptr.H
index 17701b4f3..2e68c5774 100644
--- a/src/usr/testcore/lib/shared_ptr.H
+++ b/src/usr/testcore/lib/shared_ptr.H
@@ -5,7 +5,7 @@
/* */
/* OpenPOWER HostBoot Project */
/* */
-/* Contributors Listed Below - COPYRIGHT 2015 */
+/* Contributors Listed Below - COPYRIGHT 2015,2016 */
/* [+] International Business Machines Corp. */
/* */
/* */
@@ -74,6 +74,11 @@ class STLSharedPtrTest : public CxxTest::TestSuite
TS_FAIL("p3 is not unique.");
}
+ if (!(p1 == p2))
+ {
+ TS_FAIL("p1 and p2 should be equal");
+ }
+
shared_ptr<T1> p4 = static_pointer_cast<T1>(p3);
if (p3.use_count() != 2)
{
OpenPOWER on IntegriCloud