diff options
author | Pavel Labath <labath@google.com> | 2017-03-06 19:10:19 +0000 |
---|---|---|
committer | Pavel Labath <labath@google.com> | 2017-03-06 19:10:19 +0000 |
commit | a96eac62d6b4180969876f4be0340b7f03b0b4cd (patch) | |
tree | c026bfeaf4c7098403217895fc296a6ac6543b0f /lldb/source/Utility/Log.cpp | |
parent | 0cb2ee9287a7eba197754888367b536471320930 (diff) | |
download | bcm5719-llvm-a96eac62d6b4180969876f4be0340b7f03b0b4cd.tar.gz bcm5719-llvm-a96eac62d6b4180969876f4be0340b7f03b0b4cd.zip |
Update log_options unit test
it was accessing the details of the Log class directly. Let it go
through the channel class instead.
This also discovered a bug when we were setting but not clearing the log
options when enabling a channel.
llvm-svn: 297053
Diffstat (limited to 'lldb/source/Utility/Log.cpp')
-rw-r--r-- | lldb/source/Utility/Log.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Utility/Log.cpp b/lldb/source/Utility/Log.cpp index 9f2a9a6a275..c87e289aff4 100644 --- a/lldb/source/Utility/Log.cpp +++ b/lldb/source/Utility/Log.cpp @@ -89,7 +89,7 @@ void Log::Channel::Enable(Log &log, uint32_t options, uint32_t flags) { log.GetMask().Set(flags); if (log.GetMask().Get()) { - log.GetOptions().Set(options); + log.GetOptions().Reset(options); log.SetStream(stream_sp); log_ptr.store(&log, std::memory_order_release); } |