diff options
author | Chris Wilson <chris+github@qwirx.com> | 2007-03-04 22:57:15 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2007-03-04 22:57:15 +0000 |
commit | ba61e64d38900324728cc028766564fe2d021057 (patch) | |
tree | 1c57bcacead4ee27cbb16558173ce4c5833adaa3 | |
parent | 307279a20e14201b283308639c1bb029077d61f8 (diff) |
#include Test.h to fix compile (needed for TEST_THAT)
Improved error message
Improved comments
(refs #3, merges parts of [712], [1289] and [1337])
-rw-r--r-- | infrastructure/buildenv-testmain-template.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/infrastructure/buildenv-testmain-template.cpp b/infrastructure/buildenv-testmain-template.cpp index 01fbc11a..bffd46d1 100644 --- a/infrastructure/buildenv-testmain-template.cpp +++ b/infrastructure/buildenv-testmain-template.cpp @@ -2,6 +2,9 @@ // AUTOMATICALLY GENERATED FILE // do not edit // +// Note that infrastructure/buildenv-testmain-template.cpp is NOT +// auto-generated, but test/*/_main.cpp are generated from it. +// // -------------------------------------------------------------------------- @@ -31,6 +34,7 @@ #include <syslog.h> #endif +#include "Test.h" #include "Timer.h" #include "MemLeakFindOn.h" @@ -78,7 +82,8 @@ bool checkfilesleftopen() { if(filedes_open_at_beginning == -1) { - // Not used correctly, pretend that there were things left open so this gets invesitgated + // Not used correctly, pretend that there were things + // left open so this gets investigated return true; } @@ -130,7 +135,7 @@ int main(int argc, const char *argv[]) if(memleakfinder_numleaks() != 0) { failures++; - printf("FAILURE: Memory leaks detected\n"); + printf("FAILURE: Memory leaks detected in test code\n"); printf("==== MEMORY LEAKS =================================\n"); memleakfinder_reportleaks(); printf("===================================================\n"); |