[Lldb-commits] [lldb] 522d743 - [lldb][test] Run generic set formatter test-case on specified STL (#146882)

via lldb-commits lldb-commits at lists.llvm.org
Thu Jul 3 07:35:31 PDT 2025


Author: Michael Buch
Date: 2025-07-03T15:35:28+01:00
New Revision: 522d743545e6e175315f4b96037defbe08fa2338

URL: https://github.com/llvm/llvm-project/commit/522d743545e6e175315f4b96037defbe08fa2338
DIFF: https://github.com/llvm/llvm-project/commit/522d743545e6e175315f4b96037defbe08fa2338.diff

LOG: [lldb][test] Run generic set formatter test-case on specified STL (#146882)

Previously the parameter wasn't respected. So we would only run the test
with whatever stdlib the `Makefile.rules` deduced.

Confirmed that
```
lldb-dotest -p TestDataFormatterGenericSet.py --category libstdcxx
```
passes on my machine.

Added: 
    

Modified: 
    lldb/test/API/functionalities/data-formatter/data-formatter-stl/generic/set/TestDataFormatterGenericSet.py

Removed: 
    


################################################################################
diff  --git a/lldb/test/API/functionalities/data-formatter/data-formatter-stl/generic/set/TestDataFormatterGenericSet.py b/lldb/test/API/functionalities/data-formatter/data-formatter-stl/generic/set/TestDataFormatterGenericSet.py
index 03e18ff4335e5..d3d6ef55c6ff0 100644
--- a/lldb/test/API/functionalities/data-formatter/data-formatter-stl/generic/set/TestDataFormatterGenericSet.py
+++ b/lldb/test/API/functionalities/data-formatter/data-formatter-stl/generic/set/TestDataFormatterGenericSet.py
@@ -137,7 +137,7 @@ def test_with_run_command_libcpp(self):
 
     def do_test_ref_and_ptr(self, stdlib_type):
         """Test that the data formatters work on ref and ptr."""
-        self.build()
+        self.build(dictionary={stdlib_type: "1"})
         (self.target, process, _, bkpt) = lldbutil.run_to_source_breakpoint(
             self,
             "Stop here to check by ref and ptr.",


        


More information about the lldb-commits mailing list