The instrumenter has a -o commandline switch to help troubleshoot. When invoked in this mode,
the instrumenter will show command lines for each pass and keep the temporary files.
Some typical problems are shown below.
Creating mock for EXECUTE(and other TestApe macros)
Check that testape.h is included in the tests.
Creating mock for getreentrnet
Check that you are linking with all required standard libraries. Try
and remove testape from the commandline and verify that you can compile the tests without the
instrumenter and that you do not see unexpected unresolved external symbols.
Creating mock for _Z20testape_validate_intPcS_ii
Check that you have named the files with the extension .c
if these are c files. Verify that you are compiling using gcc, not g++. If you want to to use g++ in order to
write the tests in c++, the #include <testape.h> statement must be put inside a extern "C"
declaration.
undefined reference to `testape_validate_int'
Check that you are linking with library (testape.a/testape.lib). The order of libraries and tests given on commandline is important. Verify that the library is given later on commandline than the tests using it.
testape
This release contains a new flexible mocking system with default mocks automatically generated for unresolved functions. Installation packages are available for GCC/Linux, GCC/CygWin as well Visual Studio 2009/Windows XP or Vista.
moreNew beta version is now available for download. This is the last beta before official release. The release supports an extensive mocking system.
moreThere is a change for the forum hosted on this site. The previous phpBB forum is closed for now. All forum threads will be migrated to a new simple blog. ...
moreA minor update has been released in order to support GCC when running in a CygWIN environment.
moreThe major update this year has been released. It includes a reference manual and macros to support test parameters and improved usage of the automatic stub instrumentation.
moreThe site has been updated. The webtty package has been tugged safely away in the corner and the TestApe ...
more