forked from OSchip/llvm-project
[lldb] Fix TestStopOnSharedlibraryEvents.py on linux
and hopefully other ELF OSes. The problem was a missing "extra_images" startup argument (which ensures LD_LIBRARY_PATH is set properly).
This commit is contained in:
parent
77d81c2270
commit
bbae06652e
|
@ -9,13 +9,13 @@ class TestStopOnSharedlibraryEvents(TestBase):
|
||||||
mydir = TestBase.compute_mydir(__file__)
|
mydir = TestBase.compute_mydir(__file__)
|
||||||
|
|
||||||
@skipIfRemote
|
@skipIfRemote
|
||||||
@skipUnlessDarwin
|
@skipIfWindows
|
||||||
@no_debug_info_test
|
@no_debug_info_test
|
||||||
def test_stopping_breakpoints(self):
|
def test_stopping_breakpoints(self):
|
||||||
self.do_test()
|
self.do_test()
|
||||||
|
|
||||||
@skipIfRemote
|
@skipIfRemote
|
||||||
@skipUnlessDarwin
|
@skipIfWindows
|
||||||
@no_debug_info_test
|
@no_debug_info_test
|
||||||
def test_auto_continue(self):
|
def test_auto_continue(self):
|
||||||
def auto_continue(bkpt):
|
def auto_continue(bkpt):
|
||||||
|
@ -23,15 +23,15 @@ class TestStopOnSharedlibraryEvents(TestBase):
|
||||||
self.do_test(auto_continue)
|
self.do_test(auto_continue)
|
||||||
|
|
||||||
@skipIfRemote
|
@skipIfRemote
|
||||||
|
@skipIfWindows
|
||||||
@no_debug_info_test
|
@no_debug_info_test
|
||||||
@skipUnlessDarwin
|
|
||||||
def test_failing_condition(self):
|
def test_failing_condition(self):
|
||||||
def condition(bkpt):
|
def condition(bkpt):
|
||||||
bkpt.SetCondition("1 == 2")
|
bkpt.SetCondition("1 == 2")
|
||||||
self.do_test(condition)
|
self.do_test(condition)
|
||||||
|
|
||||||
@skipIfRemote
|
@skipIfRemote
|
||||||
@skipUnlessDarwin
|
@skipIfWindows
|
||||||
@no_debug_info_test
|
@no_debug_info_test
|
||||||
def test_continue_callback(self):
|
def test_continue_callback(self):
|
||||||
def bkpt_callback(bkpt):
|
def bkpt_callback(bkpt):
|
||||||
|
@ -43,7 +43,8 @@ class TestStopOnSharedlibraryEvents(TestBase):
|
||||||
main_spec = lldb.SBFileSpec("main.cpp")
|
main_spec = lldb.SBFileSpec("main.cpp")
|
||||||
# Launch and stop before the dlopen call.
|
# Launch and stop before the dlopen call.
|
||||||
target, process, thread, _ = lldbutil.run_to_source_breakpoint(self,
|
target, process, thread, _ = lldbutil.run_to_source_breakpoint(self,
|
||||||
"// Set a breakpoint here", main_spec)
|
"// Set a breakpoint here", main_spec, extra_images=["load_a",
|
||||||
|
"load_b"])
|
||||||
|
|
||||||
# Now turn on shared library events, continue and make sure we stop for the event.
|
# Now turn on shared library events, continue and make sure we stop for the event.
|
||||||
self.runCmd("settings set target.process.stop-on-sharedlibrary-events 1")
|
self.runCmd("settings set target.process.stop-on-sharedlibrary-events 1")
|
||||||
|
|
Loading…
Reference in New Issue