[Lldb-commits] [lldb] ff4c98c - [lldb] Harden TestCompletion against new settings in 'target.process'

Raphael Isemann via lldb-commits lldb-commits at lists.llvm.org
Fri Oct 15 09:50:42 PDT 2021


Author: Raphael Isemann
Date: 2021-10-15T18:50:21+02:00
New Revision: ff4c98c05559e498300bd3ad55272ac2a8d10dbc

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

LOG: [lldb] Harden TestCompletion against new settings in 'target.process'

This test starts failing when people add a setting starting with
`target.process.t` which of course can easily happen. Make it a bit more
resistant by only requiring that `target.process.thr` has a unique completion.

Added: 
    

Modified: 
    lldb/test/API/functionalities/completion/TestCompletion.py

Removed: 
    


################################################################################
diff  --git a/lldb/test/API/functionalities/completion/TestCompletion.py b/lldb/test/API/functionalities/completion/TestCompletion.py
index 8332048313a9..1688612c5785 100644
--- a/lldb/test/API/functionalities/completion/TestCompletion.py
+++ b/lldb/test/API/functionalities/completion/TestCompletion.py
@@ -396,7 +396,7 @@ def test_settings_set_target_process(self):
     def test_settings_set_target_process_dot(self):
         """Test that 'settings set target.process.t' completes to 'settings set target.process.thread.'."""
         self.complete_from_to(
-            'settings set target.process.t',
+            'settings set target.process.thr',
             'settings set target.process.thread.')
 
     def test_settings_set_target_process_thread_dot(self):


        


More information about the lldb-commits mailing list