summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2007-11-03 19:27:18 +0000
committerChris Wilson <chris+github@qwirx.com>2007-11-03 19:27:18 +0000
commit483368754eeaeb1cdd8e17c2f32aa731559bdb6d (patch)
tree6a56fe59e73ae858f717d95ab46cbe34cbe52772
parent60c12ec5ee46f23d6dfa4035f269b323bc599ecc (diff)
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.
-rw-r--r--infrastructure/buildenv-testmain-template.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/infrastructure/buildenv-testmain-template.cpp b/infrastructure/buildenv-testmain-template.cpp
index aa12055d..8a0767e6 100644
--- a/infrastructure/buildenv-testmain-template.cpp
+++ b/infrastructure/buildenv-testmain-template.cpp
@@ -148,9 +148,6 @@ bool checkfilesleftopen()
return true;
}
- // make sure syslog log file is closed, if it was opened
- ::closelog();
-
// Count the file descriptors open
return check_filedes(true);
}
@@ -228,12 +225,12 @@ int main(int argc, char * const * argv)
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