Added Visual Studio project and fixed up some warnings showing in VS

This commit is contained in:
Phil Nash
2010-11-12 19:32:13 +00:00
parent 7e8cfa714f
commit d8aa843c7d
14 changed files with 307 additions and 9 deletions

View File

@@ -61,7 +61,7 @@ public:
}
template<typename RhsT>
MutableResultInfo& operator ||( const RhsT& rhs )
MutableResultInfo& operator ||( const RhsT& )
{
m_expressionIncomplete = true;
return *this;

View File

@@ -25,7 +25,7 @@ namespace Catch
// -r --report <type>
// -o --output filename to write to
// -s --success report successful cases too
class ArgParser
class ArgParser : NonCopyable
{
enum Mode
{

View File

@@ -17,4 +17,15 @@
#define INTERNAL_CATCH_UNIQUE_NAME_LINE( name, line ) INTERNAL_CATCH_UNIQUE_NAME_LINE2( name, line )
#define INTERNAL_CATCH_UNIQUE_NAME( name ) INTERNAL_CATCH_UNIQUE_NAME_LINE( name, __LINE__ )
namespace Catch
{
class NonCopyable
{
NonCopyable( const NonCopyable& );
void operator = ( const NonCopyable& );
protected:
NonCopyable(){}
};
}
#endif // TWOBLUECUBES_CATCH_COMMON_H_INCLUDED

View File

@@ -75,7 +75,7 @@ namespace Catch
mutable std::ostream m_os;
};
struct ITestReporter
struct ITestReporter : NonCopyable
{
virtual ~ITestReporter(){}

View File

@@ -95,7 +95,7 @@ namespace Catch
{
testInfo.invoke();
}
catch( TestFailureException& ex )
catch( TestFailureException& )
{
// This just means the test was aborted due to failure
}
@@ -118,7 +118,7 @@ namespace Catch
{
return m_successes;
}
std:: size_t getFailures() const
std:: size_t getFailureCount() const
{
return m_failures;
}

View File

@@ -22,7 +22,7 @@ namespace Catch
public:
Section( const std::string& name, const std::string& description )
{
// !TBD notify the runner
(name, description); // !TBD notify the runner
}
operator bool()