summaryrefslogtreecommitdiff
path: root/infrastructure
diff options
context:
space:
mode:
Diffstat (limited to 'infrastructure')
-rw-r--r--infrastructure/buildenv-testmain-template.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/infrastructure/buildenv-testmain-template.cpp b/infrastructure/buildenv-testmain-template.cpp
index b42f3118..661c0100 100644
--- a/infrastructure/buildenv-testmain-template.cpp
+++ b/infrastructure/buildenv-testmain-template.cpp
@@ -164,6 +164,8 @@ int main(int argc, char * const * argv)
// Start memory leak testing
MEMLEAKFINDER_START
+ Logging::SetProgramName(BOX_MODULE);
+
#ifdef HAVE_GETOPT_H
#ifdef NDEBUG
int logLevel = Log::NOTICE; // need an int to do math with
@@ -181,7 +183,7 @@ int main(int argc, char * const * argv)
int ch;
- while ((ch = getopt_long(argc, argv, "c:d:qs:t:vTUV", longopts, NULL))
+ while ((ch = getopt_long(argc, argv, "c:d:qs:t:vPTUV", longopts, NULL))
!= -1)
{
switch(ch)
@@ -213,6 +215,14 @@ int main(int argc, char * const * argv)
}
break;
+ #ifndef WIN32
+ case 'P':
+ {
+ Console::SetShowPID(true);
+ }
+ break;
+ #endif
+
case 'q':
{
if(logLevel == Log::NOTHING)