[Lldb-commits] [PATCH] D156564: [lldb] Fix test TestBSDArchives.py properly

Wanyi Ye via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Tue Aug 1 13:39:43 PDT 2023


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


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D156564.546208.patch
Type: text/x-patch
Size: 1352 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20230801/0f55b380/attachment.bin>


More information about the lldb-commits mailing list