Progmasoft Git

catch3

Progmasoft Catch3: an independently maintained C++17 test framework with a parallel runner, property checks, snapshots and structured results.

Clonegit clone https://git.progmasoft.com/catch3

Some clean-up ready for first push to GitHub

Commit
3f9e3e21ea8240923afe8c63f21f55d221041fc5
Author
Phil Nash ·
Parents
2771220a41eb

Files · Download .tar.gz

Changes

 include/reporters/catch_reporter_teamcity.hpp | 20 ++++++++++++--------
 1 file changed, 12 insertions(+), 8 deletions(-)

diff --git a/include/reporters/catch_reporter_teamcity.hpp b/include/reporters/catch_reporter_teamcity.hpp
index ffb9bf5c..364b6281 100644
--- a/include/reporters/catch_reporter_teamcity.hpp
+++ b/include/reporters/catch_reporter_teamcity.hpp
@@ -14,6 +14,11 @@
 
 #include <cstring>
 
+#ifdef __clang__
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wpadded"
+#endif
+
 namespace Catch {
     
     struct TeamCityReporter : StreamingReporterBase {
@@ -132,15 +137,13 @@ namespace Catch {
             m_headerPrintedForThisSection = false;
             StreamingReporterBase::sectionStarting( sectionInfo );
         }
-//        virtual void sectionEnded( SectionStats const& _sectionStats ) {
-//            // !TBD
-//        }
-        
+
         virtual void testCaseStarting( TestCaseInfo const& testInfo ) {
             StreamingReporterBase::testCaseStarting( testInfo );
             stream << "##teamcity[testStarted name='"
                 << escape( testInfo.name ) << "']\n";
         }
+        
         virtual void testCaseEnded( TestCaseStats const& testCaseStats ) {
             StreamingReporterBase::testCaseEnded( testCaseStats );
             if( !testCaseStats.stdOut.empty() )
@@ -154,10 +157,7 @@ namespace Catch {
             stream << "##teamcity[testFinished name='"
                 << escape( testCaseStats.testInfo.name ) << "']\n";
         }
-//        virtual void testRunEnded( TestRunStats const& _testRunStats ) {
-//            // !TBD
-//        }
-        
+
     private:
         void printSectionHeader( std::ostream& os ) {
             assert( !m_sectionStack.empty() );
@@ -205,4 +205,8 @@ namespace Catch {
     
 } // end namespace Catch
 
+#ifdef __clang__
+#pragma clang diagnostic pop
+#endif
+
 #endif // TWOBLUECUBES_CATCH_REPORTER_TEAMCITY_HPP_INCLUDED