From 7ffdb1556b3f008ffa902200cb81a3c98bf9e110 Mon Sep 17 00:00:00 2001 From: Todd Fiala Date: Thu, 22 Sep 2016 16:29:48 +0000 Subject: [PATCH] fix DarwinLog no-info/no-debug case 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 --- .../source/Plugins/StructuredData/DarwinLog/StructuredDataDarwinLog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lldb/source/Plugins/StructuredData/DarwinLog/StructuredDataDarwinLog.cpp b/lldb/source/Plugins/StructuredData/DarwinLog/StructuredDataDarwinLog.cpp index 4c5585b..0a6e324d 100644 --- a/lldb/source/Plugins/StructuredData/DarwinLog/StructuredDataDarwinLog.cpp +++ b/lldb/source/Plugins/StructuredData/DarwinLog/StructuredDataDarwinLog.cpp @@ -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( -- 2.7.4