summaryrefslogtreecommitdiff
path: root/include/cppunit/TestCaller.h
diff options
context:
space:
mode:
authorSteve M. Robbins <smr@sumost.ca>2001-07-06 00:31:25 +0000
committerSteve M. Robbins <smr@sumost.ca>2001-07-06 00:31:25 +0000
commita90452b2ef0c9366118ae1be78d798a0198ae363 (patch)
tree7ad83daa72ff5a84609528e57bdc50b86c28309f /include/cppunit/TestCaller.h
parent83766a55021bea4fa506ece7ad0be11c6dcff6f8 (diff)
downloadcppunit-a90452b2ef0c9366118ae1be78d798a0198ae363.tar.gz
Change from CPPUNIT_USE_TYPEINFO to CPPUNIT_USE_TYPEINFO_NAME
Diffstat (limited to 'include/cppunit/TestCaller.h')
-rw-r--r--include/cppunit/TestCaller.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/cppunit/TestCaller.h b/include/cppunit/TestCaller.h
index 342001b..dee0b6d 100644
--- a/include/cppunit/TestCaller.h
+++ b/include/cppunit/TestCaller.h
@@ -4,9 +4,9 @@
#include <cppunit/TestCase.h>
#include <cppunit/Exception.h>
-#if CPPUNIT_USE_TYPEINFO
+#if CPPUNIT_USE_TYPEINFO_NAME
# include <cppunit/extensions/TypeInfoHelper.h>
-#endif // CPPUNIT_USE_TYPEINFO
+#endif
namespace CppUnit {
@@ -23,13 +23,13 @@ namespace CppUnit {
{
static void expectedException()
{
-#if CPPUNIT_USE_TYPEINFO
+#if CPPUNIT_USE_TYPEINFO_NAME
std::string message( "Expected exception of type " );
message += TypeInfoHelper::getClassName( typeid( ExceptionType ) );
message += ", but got none";
#else
std::string message( "Expected exception but got none" );
-#endif // CPPUNIT_USE_TYPEINFO
+#endif
throw new Exception( message );
}
};