mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-09 01:29:52 +00:00
[lldb][test] Enable fix-its for the test case that expects them enabled
Fix-its were intentionally disabled by TestBase.setUp so that incorrect expressions in tests don't pass just because Clang thinks it has a fix-it.
This commit is contained in:
parent
a31130f6fc
commit
eecef3af2c
@ -29,6 +29,10 @@ class ExprCommandWithFixits(TestBase):
|
||||
|
||||
def test_with_dummy_target(self):
|
||||
"""Test calling expressions in the dummy target with errors that can be fixed by the FixIts."""
|
||||
|
||||
# Enable fix-its as they were intentionally disabled by TestBase.setUp.
|
||||
self.runCmd("settings set target.auto-apply-fixits true")
|
||||
|
||||
ret_val = lldb.SBCommandReturnObject()
|
||||
result = self.dbg.GetCommandInterpreter().HandleCommand("expression ((1 << 16) - 1))", ret_val)
|
||||
self.assertEqual(result, lldb.eReturnStatusSuccessFinishResult, "The expression was successful.")
|
||||
|
Loading…
Reference in New Issue
Block a user