mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-02-26 21:38:13 +00:00
[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@gmail.com>
This commit is contained in:
parent
047c4b0369
commit
96054a1857
@ -22,6 +22,9 @@ class FrameRecognizerTestCase(TestBase):
|
||||
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",
|
||||
|
Loading…
x
Reference in New Issue
Block a user