llvm-project/lldb/test/Shell/Settings
Raphael Isemann 208e3f5d9b [lldb] Fix that symbols.clang-modules-cache-path is never initialized
LLDB is supposed to ask the Clang Driver what the default module cache path is
and then use that value as the default for the
`symbols.clang-modules-cache-path` setting. However, we use the property type
`String` to change `symbols.clang-modules-cache-path` even though the type of
that setting is `FileSpec`, so the setter will simply do nothing and return
`false`. We also don't check the return value of the setter, so this whole code
ends up not doing anything at all.

This changes the setter to use the correct property type and adds an assert that
we actually successfully set the default path. Also adds a test that checks that
the default value for this setting is never unset/empty path as this would
effectively disable the import-std-module feature from working by default.

Reviewed By: JDevlieghere, shafik

Differential Revision: https://reviews.llvm.org/D92772
2020-12-10 13:37:40 +01:00
..
Inputs [FormatEntity] Add mangled function name support 2019-12-12 10:22:57 -08:00
TestDefaultModuleCachePath.test [lldb] Fix that symbols.clang-modules-cache-path is never initialized 2020-12-10 13:37:40 +01:00
TestDisableColor.test Re-land "[test] Split LLDB tests into API, Shell & Unit" 2019-10-09 19:22:02 +00:00
TestDisassemblyFormat.test [lldb/Test] Update TestDisassemblyFormat for new format 2020-02-24 14:08:16 -08:00
TestEchoCommands.test Re-land "[test] Split LLDB tests into API, Shell & Unit" 2019-10-09 19:22:02 +00:00
TestFrameFormatColor.test [lldb/lit] Introduce %clang_host substitutions 2019-10-31 10:40:37 +01:00
TestFrameFormatMangling.test [FormatEntity] Add mangled function name support 2019-12-12 10:22:57 -08:00
TestFrameFormatNoColor.test [lldb/lit] Introduce %clang_host substitutions 2019-10-31 10:40:37 +01:00
TestLineMarkerColor.test [lldb] Color the line marker 2020-02-24 15:40:31 -08:00
TestModuleCacheSanity.test Re-land "[test] Split LLDB tests into API, Shell & Unit" 2019-10-09 19:22:02 +00:00
TestSettingsSet.test [lldb/Driver] Exit with a non-zero exit code in case of error in batch mode. 2020-05-05 11:01:44 -07:00
TestSettingsWrite.test Re-land "[test] Split LLDB tests into API, Shell & Unit" 2019-10-09 19:22:02 +00:00
TestStopCommandSourceOnError.test [lldb/Driver] Exit with a non-zero exit code in case of error in batch mode. 2020-05-05 11:01:44 -07:00