mirror of
https://github.com/mat007/turtle.git
synced 2026-06-22 12:13:43 +00:00
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:
parent
8e3420f735
commit
ea501c3e00
3 changed files with 6 additions and 3 deletions
|
|
@ -15,6 +15,12 @@
|
||||||
<build-test name="turtle" depends="boost" mode="all">
|
<build-test name="turtle" depends="boost" mode="all">
|
||||||
<compilerarg value="-Wno-uninitialized" location="mid" if="is-cygwin"/>
|
<compilerarg value="-Wno-uninitialized" location="mid" if="is-cygwin"/>
|
||||||
</build-test>
|
</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>
|
||||||
|
|
||||||
<target name="analyse" description="run errors analyser">
|
<target name="analyse" description="run errors analyser">
|
||||||
|
|
|
||||||
|
|
@ -25,8 +25,6 @@ namespace
|
||||||
struct my_custom_mock
|
struct my_custom_mock
|
||||||
{
|
{
|
||||||
MOCK_METHOD_EXT( my_method, 0, void(), my_method )
|
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 )
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,6 @@
|
||||||
|
|
||||||
#include "silent_error.hpp"
|
#include "silent_error.hpp"
|
||||||
|
|
||||||
#define MOCK_MAX_ARGS 20
|
|
||||||
#define MOCK_ERROR_POLICY silent_error
|
#define MOCK_ERROR_POLICY silent_error
|
||||||
#include <turtle/mock.hpp>
|
#include <turtle/mock.hpp>
|
||||||
#include <boost/preprocessor/repetition/enum.hpp>
|
#include <boost/preprocessor/repetition/enum.hpp>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue