summaryrefslogtreecommitdiff
path: root/include/cppunit
diff options
context:
space:
mode:
Diffstat (limited to 'include/cppunit')
-rw-r--r--include/cppunit/Portability.h5
-rw-r--r--include/cppunit/TestResultCollector.h2
2 files changed, 7 insertions, 0 deletions
diff --git a/include/cppunit/Portability.h b/include/cppunit/Portability.h
index 159cd44..835c45f 100644
--- a/include/cppunit/Portability.h
+++ b/include/cppunit/Portability.h
@@ -79,8 +79,13 @@
// If not define, assumes that it's gcc
// See class CompilerOutputter for format.
#if !defined(CPPUNIT_COMPILER_LOCATION_FORMAT)
+#if defined(__GNUC__) && ( defined(__APPLE_CPP__) || defined(__APPLE_CC__) )
+// gcc/Xcode integration on Mac OS X
+# define CPPUNIT_COMPILER_LOCATION_FORMAT "%p:%l: "
+#else
# define CPPUNIT_COMPILER_LOCATION_FORMAT "%f:%l:"
#endif
+#endif
// If CPPUNIT_HAVE_CPP_CAST is defined, then c++ style cast will be used,
// otherwise, C style cast are used.
diff --git a/include/cppunit/TestResultCollector.h b/include/cppunit/TestResultCollector.h
index 65b77cd..01b0a54 100644
--- a/include/cppunit/TestResultCollector.h
+++ b/include/cppunit/TestResultCollector.h
@@ -61,6 +61,8 @@ public:
virtual const Tests &tests() const;
protected:
+ void freeFailures();
+
Tests m_tests;
TestFailures m_failures;
int m_testErrors;