Refactored tests

git-svn-id: https://svn.code.sf.net/p/turtle/code/trunk@307 860be788-9bd5-4423-9f1e-828f051e677b
This commit is contained in:
mat007 2011-05-05 16:35:03 +00:00
parent 8e3420f735
commit ea501c3e00
3 changed files with 6 additions and 3 deletions

View file

@ -15,6 +15,12 @@
<build-test name="turtle" depends="boost" mode="all">
<compilerarg value="-Wno-uninitialized" location="mid" if="is-cygwin"/>
</build-test>
<build-test name="turtle_max_args" input="turtle_test" depends="boost" mode="all">
<compilerarg value="-Wno-uninitialized" location="mid" if="is-cygwin"/>
<defineset>
<define name="MOCK_MAX_ARGS" value="20"/>
</defineset>
</build-test>
</target>
<target name="analyse" description="run errors analyser">

View file

@ -25,8 +25,6 @@ namespace
struct my_custom_mock
{
MOCK_METHOD_EXT( my_method, 0, void(), my_method )
BOOST_STATIC_ASSERT( MOCK_MAX_ARGS == 9 );
MOCK_METHOD_EXT( my_method_with_max_number_of_args, MOCK_MAX_ARGS, void( int, int, int, int, int, int, int, int, int ), my_method_with_max_number_of_args )
};
}

View file

@ -9,7 +9,6 @@
#include "silent_error.hpp"
#define MOCK_MAX_ARGS 20
#define MOCK_ERROR_POLICY silent_error
#include <turtle/mock.hpp>
#include <boost/preprocessor/repetition/enum.hpp>