[Lldb-commits] [lldb] 96054a1 - [lldb/test] Prevent TestFrameRecognizer.py to fail because of internal recognizers (NFC)
Med Ismail Bennani via lldb-commits
lldb-commits at lists.llvm.org
Fri Feb 7 08:36:25 PST 2020
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.bennani at 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",
More information about the lldb-commits
mailing list