This revision was automatically updated to reflect the committed changes.
Closed by commit rGca76281917d0: [lldb] Fix test TestBSDArchives.py properly
(authored by kusmour).
Herald added a project: LLDB.
Herald added a subscriber: lldb-commits.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D156564/new/
https://reviews.llvm.org/D156564
Files:
lldb/test/API/functionalities/archives/Makefile
lldb/test/API/functionalities/archives/TestBSDArchives.py
Index: lldb/test/API/functionalities/archives/TestBSDArchives.py
===================================================================
--- lldb/test/API/functionalities/archives/TestBSDArchives.py
+++ lldb/test/API/functionalities/archives/TestBSDArchives.py
@@ -167,6 +167,20 @@
") of the .o file doesn't match",
]
self.check_frame_variable_errors(thread, error_strings)
+
+ # Break at b() should succeed
+ (target, process, thread, bkpt) = lldbutil.run_to_name_breakpoint(
+ self, "b", bkpt_module=exe
+ )
+ self.expect(
+ "thread list",
+ STOPPED_DUE_TO_BREAKPOINT,
+ substrs=["stopped", "stop reason = breakpoint"],
+ )
+ self.expect(
+ "frame variable", VARIABLES_DISPLAYED_CORRECTLY, substrs=["(int)
arg = 2"]
+ )
+
@skipIfRemote
@skipUnlessDarwin
Index: lldb/test/API/functionalities/archives/Makefile
===================================================================
--- lldb/test/API/functionalities/archives/Makefile
+++ lldb/test/API/functionalities/archives/Makefile
@@ -18,7 +18,7 @@
libfoo-thin.a: a.o b.o
$(eval LLVM_AR := $(LLVM_TOOLS_DIR)/llvm-ar)
- $(eval LLVM_ARFLAGS := -rcsDT)
+ $(eval LLVM_ARFLAGS := -rcsUT)
$(LLVM_AR) $(LLVM_ARFLAGS) $@ $^
include Makefile.rules
Index: lldb/test/API/functionalities/archives/TestBSDArchives.py
===================================================================
--- lldb/test/API/functionalities/archives/TestBSDArchives.py
+++ lldb/test/API/functionalities/archives/TestBSDArchives.py
@@ -167,6 +167,20 @@
") of the .o file doesn't match",
]
self.check_frame_variable_errors(thread, error_strings)
+
+ # Break at b() should succeed
+ (target, process, thread, bkpt) = lldbutil.run_to_name_breakpoint(
+ self, "b", bkpt_module=exe
+ )
+ self.expect(
+ "thread list",
+ STOPPED_DUE_TO_BREAKPOINT,
+ substrs=["stopped", "stop reason = breakpoint"],
+ )
+ self.expect(
+ "frame variable", VARIABLES_DISPLAYED_CORRECTLY, substrs=["(int) arg = 2"]
+ )
+
@skipIfRemote
@skipUnlessDarwin
Index: lldb/test/API/functionalities/archives/Makefile
===================================================================
--- lldb/test/API/functionalities/archives/Makefile
+++ lldb/test/API/functionalities/archives/Makefile
@@ -18,7 +18,7 @@
libfoo-thin.a: a.o b.o
$(eval LLVM_AR := $(LLVM_TOOLS_DIR)/llvm-ar)
- $(eval LLVM_ARFLAGS := -rcsDT)
+ $(eval LLVM_ARFLAGS := -rcsUT)
$(LLVM_AR) $(LLVM_ARFLAGS) $@ $^
include Makefile.rules
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits