Author: Med Ismail Bennani
Date: 2020-02-07T17:35:29+01:00
New Revision: 96054a1857e597ec15c36b935ea076a550047f02

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

LOG: [lldb/test] Prevent TestFrameRecognizer.py to fail because of internal 
recognizers (NFC)

By clearing the recognizers before starting the test, we ensure that the
recognizers that get initialized when lldb starts won't alter the
expected results of this test (i.e. recognizer index).

Signed-off-by: Med Ismail Bennani <medismail.benn...@gmail.com>

Added: 
    

Modified: 
    
lldb/packages/Python/lldbsuite/test/commands/frame/recognizer/TestFrameRecognizer.py

Removed: 
    


################################################################################
diff  --git 
a/lldb/packages/Python/lldbsuite/test/commands/frame/recognizer/TestFrameRecognizer.py
 
b/lldb/packages/Python/lldbsuite/test/commands/frame/recognizer/TestFrameRecognizer.py
index 39ca7619acd0..683b2e8f7b48 100644
--- 
a/lldb/packages/Python/lldbsuite/test/commands/frame/recognizer/TestFrameRecognizer.py
+++ 
b/lldb/packages/Python/lldbsuite/test/commands/frame/recognizer/TestFrameRecognizer.py
@@ -22,6 +22,9 @@ def test_frame_recognizer_1(self):
         target = self.dbg.CreateTarget(self.getBuildArtifact("a.out"))
         self.assertTrue(target, VALID_TARGET)
 
+        # Clear internal & plugins recognizers that get initialized at launch
+        self.runCmd("frame recognizer clear")
+
         self.runCmd("command script import " + 
os.path.join(self.getSourceDir(), "recognizer.py"))
 
         self.expect("frame recognizer list",


        
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to