fix DarwinLog no-info/no-debug case
authorTodd Fiala <todd.fiala@gmail.com>
Thu, 22 Sep 2016 16:29:48 +0000 (16:29 +0000)
committerTodd Fiala <todd.fiala@gmail.com>
Thu, 22 Sep 2016 16:29:48 +0000 (16:29 +0000)
This started failing recently:
TestDarwinLogSourceDebug.py

It looks like the behavior of specifying the OS_ACTIVITY_MODE
env var with no value used to work for no-info/no-debug content.
That doesn't appear to be the case now.  Switch to specifying
the proper value ('default') when no info-level and no debug-level
content is expected.

llvm-svn: 282172

lldb/source/Plugins/StructuredData/DarwinLog/StructuredDataDarwinLog.cpp

index 4c5585b..0a6e324 100644 (file)
@@ -1566,7 +1566,7 @@ Error StructuredDataDarwinLog::FilterLaunchInfo(ProcessLaunchInfo &launch_info,
   else if (options_sp->GetIncludeInfoLevel())
     env_var_value = "info";
   else
-    env_var_value = "";
+    env_var_value = "default";
 
   if (env_var_value) {
     launch_info.GetEnvironmentEntries().AddOrReplaceEnvironmentVariable(