Minidump plugin: Fix flaky test
authorDimitar Vlahovski <dvlahovski@google.com>
Tue, 1 Nov 2016 15:48:24 +0000 (15:48 +0000)
committerDimitar Vlahovski <dvlahovski@google.com>
Tue, 1 Nov 2016 15:48:24 +0000 (15:48 +0000)
commit5a19c0cc50160b6475c431936e250fbc1aa4a5f6
treecd52f8de99416eac06c677b73d4123f5717fa8d5
parent8a915ed644b910ae9d7d2aef7ad491791fbd4944
Minidump plugin: Fix flaky test

Summary:
One of the tests was flaky, because similarly to
https://reviews.llvm.org/D18697 (rL265391) - if there is a process running
which is with the same PID as in the core file, the minidump
core file debugging will fail, because we get some information from the
running process.
The fix is routing the ProcessInfo requests through the Process class
and overriding it in ProcessMinidump to return correct data.

Reviewers: labath

Subscribers: lldb-commits, beanz

Differential Revision: https://reviews.llvm.org/D26193

llvm-svn: 285698
lldb/packages/Python/lldbsuite/test/functionalities/postmortem/minidump-new/TestMiniDumpNew.py
lldb/source/Plugins/Process/minidump/ProcessMinidump.cpp
lldb/source/Plugins/Process/minidump/ProcessMinidump.h