mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-11-03 21:49:32 +01:00 
			
		
		
		
	merge from upstream
This commit is contained in:
		@@ -1,6 +1,6 @@
 | 
				
			|||||||

 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
*v1.0 build 19 (master branch)*
 | 
					*v1.0 build 20 (master branch)*
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Build status (on Travis CI) [](https://travis-ci.org/philsquared/Catch)
 | 
					Build status (on Travis CI) [](https://travis-ci.org/philsquared/Catch)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -14,7 +14,7 @@ namespace Catch {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    // These numbers are maintained by a script
 | 
					    // These numbers are maintained by a script
 | 
				
			||||||
    template <typename T>
 | 
					    template <typename T>
 | 
				
			||||||
    const T LibraryVersionInfo<T>::value( 1, 0, 19, "master" );
 | 
					    const T LibraryVersionInfo<T>::value( 1, 0, 20, "master" );
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#endif // TWOBLUECUBES_CATCH_VERSION_HPP_INCLUDED
 | 
					#endif // TWOBLUECUBES_CATCH_VERSION_HPP_INCLUDED
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -92,9 +92,16 @@ namespace Catch {
 | 
				
			|||||||
            std::string stdOut;
 | 
					            std::string stdOut;
 | 
				
			||||||
            std::string stdErr;
 | 
					            std::string stdErr;
 | 
				
			||||||
        };
 | 
					        };
 | 
				
			||||||
        friend bool operator == ( Ptr<SectionNode> const& node, SectionInfo const& other ) {
 | 
					
 | 
				
			||||||
            return node->stats.sectionInfo.lineInfo == other.lineInfo;
 | 
					        struct BySectionInfo {
 | 
				
			||||||
        }
 | 
					            BySectionInfo( SectionInfo const& other ) : m_other( other ) {}
 | 
				
			||||||
 | 
					            bool operator() ( Ptr<SectionNode> const& node ) const {
 | 
				
			||||||
 | 
					                return node->stats.sectionInfo.lineInfo == m_other.lineInfo;
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					        private:
 | 
				
			||||||
 | 
					            SectionInfo const& m_other;
 | 
				
			||||||
 | 
					        };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        typedef Node<TestCaseStats, SectionNode> TestCaseNode;
 | 
					        typedef Node<TestCaseStats, SectionNode> TestCaseNode;
 | 
				
			||||||
        typedef Node<TestGroupStats, TestCaseNode> TestGroupNode;
 | 
					        typedef Node<TestGroupStats, TestCaseNode> TestGroupNode;
 | 
				
			||||||
@@ -122,7 +129,9 @@ namespace Catch {
 | 
				
			|||||||
            else {
 | 
					            else {
 | 
				
			||||||
                SectionNode& parentNode = *m_sectionStack.back();
 | 
					                SectionNode& parentNode = *m_sectionStack.back();
 | 
				
			||||||
                SectionNode::ChildSections::const_iterator it =
 | 
					                SectionNode::ChildSections::const_iterator it =
 | 
				
			||||||
                    std::find( parentNode.childSections.begin(), parentNode.childSections.end(), sectionInfo );
 | 
					                    std::find_if(   parentNode.childSections.begin(),
 | 
				
			||||||
 | 
					                                    parentNode.childSections.end(),
 | 
				
			||||||
 | 
					                                    BySectionInfo( sectionInfo ) );
 | 
				
			||||||
                if( it == parentNode.childSections.end() ) {
 | 
					                if( it == parentNode.childSections.end() ) {
 | 
				
			||||||
                    node = new SectionNode( incompleteStats );
 | 
					                    node = new SectionNode( incompleteStats );
 | 
				
			||||||
                    parentNode.childSections.push_back( node );
 | 
					                    parentNode.childSections.push_back( node );
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -123,7 +123,7 @@
 | 
				
			|||||||
		4A63D29C14E3C1A900F615CB /* Project object */ = {
 | 
							4A63D29C14E3C1A900F615CB /* Project object */ = {
 | 
				
			||||||
			isa = PBXProject;
 | 
								isa = PBXProject;
 | 
				
			||||||
			attributes = {
 | 
								attributes = {
 | 
				
			||||||
				LastUpgradeCheck = 0420;
 | 
									LastUpgradeCheck = 0500;
 | 
				
			||||||
			};
 | 
								};
 | 
				
			||||||
			buildConfigurationList = 4A63D29F14E3C1A900F615CB /* Build configuration list for PBXProject "OCTest" */;
 | 
								buildConfigurationList = 4A63D29F14E3C1A900F615CB /* Build configuration list for PBXProject "OCTest" */;
 | 
				
			||||||
			compatibilityVersion = "Xcode 3.2";
 | 
								compatibilityVersion = "Xcode 3.2";
 | 
				
			||||||
@@ -161,7 +161,12 @@
 | 
				
			|||||||
			isa = XCBuildConfiguration;
 | 
								isa = XCBuildConfiguration;
 | 
				
			||||||
			buildSettings = {
 | 
								buildSettings = {
 | 
				
			||||||
				ALWAYS_SEARCH_USER_PATHS = NO;
 | 
									ALWAYS_SEARCH_USER_PATHS = NO;
 | 
				
			||||||
				ARCHS = "$(ARCHS_STANDARD_64_BIT)";
 | 
									CLANG_WARN_BOOL_CONVERSION = YES;
 | 
				
			||||||
 | 
									CLANG_WARN_CONSTANT_CONVERSION = YES;
 | 
				
			||||||
 | 
									CLANG_WARN_EMPTY_BODY = YES;
 | 
				
			||||||
 | 
									CLANG_WARN_ENUM_CONVERSION = YES;
 | 
				
			||||||
 | 
									CLANG_WARN_INT_CONVERSION = YES;
 | 
				
			||||||
 | 
									CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
 | 
				
			||||||
				COPY_PHASE_STRIP = NO;
 | 
									COPY_PHASE_STRIP = NO;
 | 
				
			||||||
				GCC_C_LANGUAGE_STANDARD = gnu99;
 | 
									GCC_C_LANGUAGE_STANDARD = gnu99;
 | 
				
			||||||
				GCC_DYNAMIC_NO_PIC = NO;
 | 
									GCC_DYNAMIC_NO_PIC = NO;
 | 
				
			||||||
@@ -176,6 +181,9 @@
 | 
				
			|||||||
				GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
 | 
									GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
 | 
				
			||||||
				GCC_WARN_ABOUT_MISSING_PROTOTYPES = YES;
 | 
									GCC_WARN_ABOUT_MISSING_PROTOTYPES = YES;
 | 
				
			||||||
				GCC_WARN_ABOUT_RETURN_TYPE = YES;
 | 
									GCC_WARN_ABOUT_RETURN_TYPE = YES;
 | 
				
			||||||
 | 
									GCC_WARN_UNDECLARED_SELECTOR = YES;
 | 
				
			||||||
 | 
									GCC_WARN_UNINITIALIZED_AUTOS = YES;
 | 
				
			||||||
 | 
									GCC_WARN_UNUSED_FUNCTION = YES;
 | 
				
			||||||
				GCC_WARN_UNUSED_VARIABLE = YES;
 | 
									GCC_WARN_UNUSED_VARIABLE = YES;
 | 
				
			||||||
				HEADER_SEARCH_PATHS = ../../../include;
 | 
									HEADER_SEARCH_PATHS = ../../../include;
 | 
				
			||||||
				MACOSX_DEPLOYMENT_TARGET = 10.7;
 | 
									MACOSX_DEPLOYMENT_TARGET = 10.7;
 | 
				
			||||||
@@ -188,7 +196,12 @@
 | 
				
			|||||||
			isa = XCBuildConfiguration;
 | 
								isa = XCBuildConfiguration;
 | 
				
			||||||
			buildSettings = {
 | 
								buildSettings = {
 | 
				
			||||||
				ALWAYS_SEARCH_USER_PATHS = NO;
 | 
									ALWAYS_SEARCH_USER_PATHS = NO;
 | 
				
			||||||
				ARCHS = "$(ARCHS_STANDARD_64_BIT)";
 | 
									CLANG_WARN_BOOL_CONVERSION = YES;
 | 
				
			||||||
 | 
									CLANG_WARN_CONSTANT_CONVERSION = YES;
 | 
				
			||||||
 | 
									CLANG_WARN_EMPTY_BODY = YES;
 | 
				
			||||||
 | 
									CLANG_WARN_ENUM_CONVERSION = YES;
 | 
				
			||||||
 | 
									CLANG_WARN_INT_CONVERSION = YES;
 | 
				
			||||||
 | 
									CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
 | 
				
			||||||
				COPY_PHASE_STRIP = YES;
 | 
									COPY_PHASE_STRIP = YES;
 | 
				
			||||||
				DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
 | 
									DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
 | 
				
			||||||
				GCC_C_LANGUAGE_STANDARD = gnu99;
 | 
									GCC_C_LANGUAGE_STANDARD = gnu99;
 | 
				
			||||||
@@ -197,6 +210,9 @@
 | 
				
			|||||||
				GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
 | 
									GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
 | 
				
			||||||
				GCC_WARN_ABOUT_MISSING_PROTOTYPES = YES;
 | 
									GCC_WARN_ABOUT_MISSING_PROTOTYPES = YES;
 | 
				
			||||||
				GCC_WARN_ABOUT_RETURN_TYPE = YES;
 | 
									GCC_WARN_ABOUT_RETURN_TYPE = YES;
 | 
				
			||||||
 | 
									GCC_WARN_UNDECLARED_SELECTOR = YES;
 | 
				
			||||||
 | 
									GCC_WARN_UNINITIALIZED_AUTOS = YES;
 | 
				
			||||||
 | 
									GCC_WARN_UNUSED_FUNCTION = YES;
 | 
				
			||||||
				GCC_WARN_UNUSED_VARIABLE = YES;
 | 
									GCC_WARN_UNUSED_VARIABLE = YES;
 | 
				
			||||||
				HEADER_SEARCH_PATHS = ../../../include;
 | 
									HEADER_SEARCH_PATHS = ../../../include;
 | 
				
			||||||
				MACOSX_DEPLOYMENT_TARGET = 10.7;
 | 
									MACOSX_DEPLOYMENT_TARGET = 10.7;
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,6 +1,6 @@
 | 
				
			|||||||
/*
 | 
					/*
 | 
				
			||||||
 *  CATCH v1.0 build 19 (master branch)
 | 
					 *  CATCH v1.0 build 20 (master branch)
 | 
				
			||||||
 *  Generated: 2013-12-14 23:16:21.805565
 | 
					 *  Generated: 2013-12-18 08:38:15.171445
 | 
				
			||||||
 *  ----------------------------------------------------------
 | 
					 *  ----------------------------------------------------------
 | 
				
			||||||
 *  This file has been merged from multiple headers. Please don't edit it directly
 | 
					 *  This file has been merged from multiple headers. Please don't edit it directly
 | 
				
			||||||
 *  Copyright (c) 2012 Two Blue Cubes Ltd. All rights reserved.
 | 
					 *  Copyright (c) 2012 Two Blue Cubes Ltd. All rights reserved.
 | 
				
			||||||
@@ -6166,7 +6166,7 @@ namespace Catch {
 | 
				
			|||||||
namespace Catch {
 | 
					namespace Catch {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    // These numbers are maintained by a script
 | 
					    // These numbers are maintained by a script
 | 
				
			||||||
    Version libraryVersion( 1, 0, 19, "master" );
 | 
					    Version libraryVersion( 1, 0, 20, "master" );
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// #included from: catch_text.hpp
 | 
					// #included from: catch_text.hpp
 | 
				
			||||||
@@ -6739,9 +6739,15 @@ namespace Catch {
 | 
				
			|||||||
            std::string stdOut;
 | 
					            std::string stdOut;
 | 
				
			||||||
            std::string stdErr;
 | 
					            std::string stdErr;
 | 
				
			||||||
        };
 | 
					        };
 | 
				
			||||||
        friend bool operator == ( Ptr<SectionNode> const& node, SectionInfo const& other ) {
 | 
					
 | 
				
			||||||
            return node->stats.sectionInfo.lineInfo == other.lineInfo;
 | 
					        struct BySectionInfo {
 | 
				
			||||||
        }
 | 
					            BySectionInfo( SectionInfo const& other ) : m_other( other ) {}
 | 
				
			||||||
 | 
					            bool operator() ( Ptr<SectionNode> const& node ) const {
 | 
				
			||||||
 | 
					                return node->stats.sectionInfo.lineInfo == m_other.lineInfo;
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					        private:
 | 
				
			||||||
 | 
					            SectionInfo const& m_other;
 | 
				
			||||||
 | 
					        };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        typedef Node<TestCaseStats, SectionNode> TestCaseNode;
 | 
					        typedef Node<TestCaseStats, SectionNode> TestCaseNode;
 | 
				
			||||||
        typedef Node<TestGroupStats, TestCaseNode> TestGroupNode;
 | 
					        typedef Node<TestGroupStats, TestCaseNode> TestGroupNode;
 | 
				
			||||||
@@ -6769,7 +6775,9 @@ namespace Catch {
 | 
				
			|||||||
            else {
 | 
					            else {
 | 
				
			||||||
                SectionNode& parentNode = *m_sectionStack.back();
 | 
					                SectionNode& parentNode = *m_sectionStack.back();
 | 
				
			||||||
                SectionNode::ChildSections::const_iterator it =
 | 
					                SectionNode::ChildSections::const_iterator it =
 | 
				
			||||||
                    std::find( parentNode.childSections.begin(), parentNode.childSections.end(), sectionInfo );
 | 
					                    std::find_if(   parentNode.childSections.begin(),
 | 
				
			||||||
 | 
					                                    parentNode.childSections.end(),
 | 
				
			||||||
 | 
					                                    BySectionInfo( sectionInfo ) );
 | 
				
			||||||
                if( it == parentNode.childSections.end() ) {
 | 
					                if( it == parentNode.childSections.end() ) {
 | 
				
			||||||
                    node = new SectionNode( incompleteStats );
 | 
					                    node = new SectionNode( incompleteStats );
 | 
				
			||||||
                    parentNode.childSections.push_back( node );
 | 
					                    parentNode.childSections.push_back( node );
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user