Skip to content

Commit b1794a1

Browse files
labathmemfrob
authored andcommitted
[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).
1 parent 5c54594 commit b1794a1

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

lldb/test/API/functionalities/stop-on-sharedlibrary-load/TestStopOnSharedlibraryEvents.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,29 +9,29 @@ class TestStopOnSharedlibraryEvents(TestBase):
99
mydir = TestBase.compute_mydir(__file__)
1010

1111
@skipIfRemote
12-
@skipUnlessDarwin
12+
@skipIfWindows
1313
@no_debug_info_test
1414
def test_stopping_breakpoints(self):
1515
self.do_test()
1616

1717
@skipIfRemote
18-
@skipUnlessDarwin
18+
@skipIfWindows
1919
@no_debug_info_test
2020
def test_auto_continue(self):
2121
def auto_continue(bkpt):
2222
bkpt.SetAutoContinue(True)
2323
self.do_test(auto_continue)
2424

2525
@skipIfRemote
26+
@skipIfWindows
2627
@no_debug_info_test
27-
@skipUnlessDarwin
2828
def test_failing_condition(self):
2929
def condition(bkpt):
3030
bkpt.SetCondition("1 == 2")
3131
self.do_test(condition)
3232

3333
@skipIfRemote
34-
@skipUnlessDarwin
34+
@skipIfWindows
3535
@no_debug_info_test
3636
def test_continue_callback(self):
3737
def bkpt_callback(bkpt):
@@ -43,7 +43,8 @@ def do_test(self, bkpt_modifier = None):
4343
main_spec = lldb.SBFileSpec("main.cpp")
4444
# Launch and stop before the dlopen call.
4545
target, process, thread, _ = lldbutil.run_to_source_breakpoint(self,
46-
"// Set a breakpoint here", main_spec)
46+
"// Set a breakpoint here", main_spec, extra_images=["load_a",
47+
"load_b"])
4748

4849
# Now turn on shared library events, continue and make sure we stop for the event.
4950
self.runCmd("settings set target.process.stop-on-sharedlibrary-events 1")

0 commit comments

Comments
 (0)