Fix TestBreakpointInGlobalConstructor for Windows
authorAdrian McCarthy <amccarth@google.com>
Wed, 21 Feb 2018 18:08:23 +0000 (18:08 +0000)
committerAdrian McCarthy <amccarth@google.com>
Wed, 21 Feb 2018 18:08:23 +0000 (18:08 +0000)
commit25727a458ce42292d73af5c692d6e12d06500e68
treecf0722ff014e823b9fb44bd30613da9d89684ca9
parent6b287234ea0a8d5a5533a1b687c1cbaddffa6404
Fix TestBreakpointInGlobalConstructor for Windows

Summary:
This test was failing on Windows because it expected the breakpoint in the
dynamic library to be resolved before the process is launched.  Since the DLL
isn't loaded until the process is launched this didn't work.

The fix creates a special value (-2) for num_expected_locations that ignores
the actual number of breakpoint locations found.

Reviewers: jasonmolenda

Subscribers: sanjoy, lldb-commits

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

llvm-svn: 325704
lldb/packages/Python/lldbsuite/test/functionalities/breakpoint/global_constructor/TestBreakpointInGlobalConstructor.py
lldb/packages/Python/lldbsuite/test/lldbutil.py