diff options
| author | Zachary Turner <zturner@google.com> | 2016-01-21 21:07:30 +0000 |
|---|---|---|
| committer | Zachary Turner <zturner@google.com> | 2016-01-21 21:07:30 +0000 |
| commit | 783550be6211b65de45c4c44eac339311f3ae1e2 (patch) | |
| tree | 4827f9b6759311267e2f86d95c6426f76d6b6ae6 /lldb/packages/Python/lldbsuite/test/functionalities/thread/multi_break | |
| parent | bef81f3a70028699965700e6b77dcb8952abcc85 (diff) | |
| download | bcm5719-llvm-783550be6211b65de45c4c44eac339311f3ae1e2.tar.gz bcm5719-llvm-783550be6211b65de45c4c44eac339311f3ae1e2.zip | |
Remove assumptions that thread 0 is always the main thread.
Starting with Windows 10, the Windows loader is itself multi-threaded,
meaning that the loader spins up a few threads to do process
initialization before it executes main. Windows delivers these
notifications asynchronously and they can come out of order, so
we can't be sure that the first thread we get a notification about
is actually the zero'th thread.
This patch fixes this by requesting the thread stopped at the
breakpoint that was specified, rather than getting thread 0 and
verifying that it is stopped at a breakpoint.
Differential Revision: http://reviews.llvm.org/D16247
llvm-svn: 258432
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/functionalities/thread/multi_break')
| -rw-r--r-- | lldb/packages/Python/lldbsuite/test/functionalities/thread/multi_break/TestMultipleBreakpoints.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/thread/multi_break/TestMultipleBreakpoints.py b/lldb/packages/Python/lldbsuite/test/functionalities/thread/multi_break/TestMultipleBreakpoints.py index 9dd21241221..65d9bfdb5ca 100644 --- a/lldb/packages/Python/lldbsuite/test/functionalities/thread/multi_break/TestMultipleBreakpoints.py +++ b/lldb/packages/Python/lldbsuite/test/functionalities/thread/multi_break/TestMultipleBreakpoints.py @@ -55,7 +55,7 @@ class MultipleBreakpointTestCase(TestBase): num_threads = process.GetNumThreads() # Make sure we see all three threads - self.assertTrue(num_threads == 3, 'Number of expected threads and actual threads do not match.') + self.assertTrue(num_threads >= 3, 'Number of expected threads and actual threads do not match.') # Get the thread objects thread1 = process.GetThreadAtIndex(0) |

