Files
clang-p2996/lldb/test/API/functionalities/alias/TestPAlias.py
Dave Lee 4076664228 [lldb][test] Replace use of p with expression (NFC)
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
2023-01-25 11:03:58 -08:00

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)