[Box Backup-commit] COMMIT r1355 - box/chris/merge/infrastructure
boxbackup-dev at fluffy.co.uk
boxbackup-dev at fluffy.co.uk
Sun Mar 4 22:57:15 GMT 2007
Author: chris
Date: 2007-03-04 22:57:15 +0000 (Sun, 04 Mar 2007)
New Revision: 1355
Modified:
box/chris/merge/infrastructure/buildenv-testmain-template.cpp
Log:
#include Test.h to fix compile (needed for TEST_THAT)
Improved error message
Improved comments
(refs #3, merges parts of [712], [1289] and [1337])
Modified: box/chris/merge/infrastructure/buildenv-testmain-template.cpp
===================================================================
--- box/chris/merge/infrastructure/buildenv-testmain-template.cpp 2007-03-04 22:50:26 UTC (rev 1354)
+++ box/chris/merge/infrastructure/buildenv-testmain-template.cpp 2007-03-04 22:57:15 UTC (rev 1355)
@@ -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 @@
{
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 @@
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");
More information about the Boxbackup-commit
mailing list