summaryrefslogtreecommitdiffstats
path: root/src/usr/testcore/lib
diff options
context:
space:
mode:
authorAndre Marin <aamarin@us.ibm.com>2019-03-24 15:01:30 -0500
committerChristian R. Geddes <crgeddes@us.ibm.com>2019-04-02 13:19:16 -0500
commit8daf280f7d24a3f5b2c553bb39ceda4d0fd32736 (patch)
tree97904c0ae6f2eef7c878aa3ae2f3032bd21a013a /src/usr/testcore/lib
parentca03643dd8935f9c839cf8dfd4971c519476f4a1 (diff)
downloadtalos-hostboot-8daf280f7d24a3f5b2c553bb39ceda4d0fd32736.tar.gz
talos-hostboot-8daf280f7d24a3f5b2c553bb39ceda4d0fd32736.zip
Fix true_type and false_ type typdef with integral_constant
Change-Id: Ie1a432be0d1b2a59a0e0521f251d6bdf8a11ac70 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/74942 Reviewed-by: Nicholas E. Bofferding <bofferdn@us.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com>
Diffstat (limited to 'src/usr/testcore/lib')
-rw-r--r--src/usr/testcore/lib/integral.H15
-rw-r--r--src/usr/testcore/lib/makefile5
2 files changed, 18 insertions, 2 deletions
diff --git a/src/usr/testcore/lib/integral.H b/src/usr/testcore/lib/integral.H
index 74750582e..bead1c03f 100644
--- a/src/usr/testcore/lib/integral.H
+++ b/src/usr/testcore/lib/integral.H
@@ -82,6 +82,21 @@ class STLIntegralTest : public CxxTest::TestSuite
TS_FAIL("false_type is not false.");
}
}
+
+ void testTypes()
+ {
+ if (!std::is_same<std::true_type,
+ std::integral_constant<bool, true> >::value)
+ {
+ TS_FAIL("true_type and integral_constant<bool, true> are not the same type.");
+ }
+
+ if (!std::is_same<std::false_type,
+ std::integral_constant<bool, false> >::value)
+ {
+ TS_FAIL("true_type and integral_constant<bool, false> are not the same type.");
+ }
+ }
};
#endif
diff --git a/src/usr/testcore/lib/makefile b/src/usr/testcore/lib/makefile
index ea4b74ee4..35c3a3895 100644
--- a/src/usr/testcore/lib/makefile
+++ b/src/usr/testcore/lib/makefile
@@ -27,11 +27,12 @@ ROOTPATH = ../../../..
MODULE = testsyslib
#@TODO-RTC:151185-Turn enable all test cases
#TESTS = *.H
-TESTS = stltest.H
#TODO RTC:204720
#TESTS += synctest.H
-TESTS += tls.H
+TESTS = stltest.H
+TESTS += tls.H
+TESTS += integral.H
SUBDIRS += runtime.d
include ${ROOTPATH}/config.mk
OpenPOWER on IntegriCloud