summaryrefslogtreecommitdiff
path: root/include/cppunit/TestCaller.h
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2016-12-16 10:10:22 +0100
committerDavid Tardon <dtardon@redhat.com>2016-12-16 10:10:33 +0100
commit3bf22cb6d0645bf329fec9c850477b2fc9976f6c (patch)
tree6dbfcbf8232501c4671c5a58dd7f3fb5a8464db6 /include/cppunit/TestCaller.h
parentff6ce1d7c00be2279f905b2f08cbbd67fa239ae7 (diff)
downloadcppunit-3bf22cb6d0645bf329fec9c850477b2fc9976f6c.tar.gz
tdf#104498 CPPUNIT_USE_TYPEINFO_NAME is a flag
... so check just for existence.
Diffstat (limited to 'include/cppunit/TestCaller.h')
-rw-r--r--include/cppunit/TestCaller.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/cppunit/TestCaller.h b/include/cppunit/TestCaller.h
index aba2c27..bbb9002 100644
--- a/include/cppunit/TestCaller.h
+++ b/include/cppunit/TestCaller.h
@@ -5,7 +5,7 @@
#include <cppunit/TestCase.h>
-#if CPPUNIT_USE_TYPEINFO_NAME
+#if defined(CPPUNIT_USE_TYPEINFO_NAME)
# include <cppunit/extensions/TypeInfoHelper.h>
#endif
@@ -33,7 +33,7 @@ struct ExpectedExceptionTraits
{
static void expectedException()
{
-#if CPPUNIT_USE_TYPEINFO_NAME
+#if defined(CPPUNIT_USE_TYPEINFO_NAME)
throw Exception( Message(
"expected exception not thrown",
"Expected exception type: " +