[Box Backup-commit] COMMIT r1950 - box/chris/general/infrastructure
boxbackup-dev@fluffy.co.uk
boxbackup-dev@fluffy.co.uk
Sat, 8 Dec 2007 21:47:43 +0000 (UTC)
Author: chris
Date: 2007-12-08 21:47:43 +0000 (Sat, 08 Dec 2007)
New Revision: 1950
Modified:
box/chris/general/infrastructure/buildenv-testmain-template.cpp
Log:
Log something before checking open file descriptors, to ensure that
the notification socket is open already on MacOS X, as it will be at
the end of the test because you can't close it. (merges [1905])
Modified: box/chris/general/infrastructure/buildenv-testmain-template.cpp
===================================================================
--- box/chris/general/infrastructure/buildenv-testmain-template.cpp 2007-12-08 21:46:53 UTC (rev 1949)
+++ box/chris/general/infrastructure/buildenv-testmain-template.cpp 2007-12-08 21:47:43 UTC (rev 1950)
@@ -148,9 +148,6 @@
return true;
}
- // make sure syslog log file is closed, if it was opened
- ::closelog();
-
// Count the file descriptors open
return check_filedes(true);
}
@@ -233,12 +230,12 @@
if(fulltestmode)
{
+ // banner
+ BOX_NOTICE("Running test TEST_NAME in " MODE_TEXT " mode...");
+
// Count open file descriptors for a very crude "files left open" test
check_filedes(false);
- // banner
- printf("Running test TEST_NAME in " MODE_TEXT " mode...\n");
-
#ifdef WIN32
// Under win32 we must initialise the Winsock library
// before using sockets