In API tests, replace use of the `p` alias with the `expression` command. To avoid conflating tests of the alias with tests of the expression command, this patch canonicalizes to the use `expression`. Differential Revision: https://reviews.llvm.org/D141539
12 lines
339 B
Python
12 lines
339 B
Python
import lldb
|
|
from lldbsuite.test.lldbtest import TestBase
|
|
from lldbsuite.test import lldbutil
|
|
|
|
|
|
class TestCase(TestBase):
|
|
def test(self):
|
|
self.build()
|
|
lldbutil.run_to_source_breakpoint(self, "return", lldb.SBFileSpec("main.c"))
|
|
self.expect("p -g", substrs=["$0 = -"])
|
|
self.expect("p -i0 -g", error=True)
|