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
20 lines
463 B
Python
20 lines
463 B
Python
"""
|
|
Test that backticks without a target should work (not infinite looping).
|
|
"""
|
|
|
|
|
|
|
|
import lldb
|
|
from lldbsuite.test.decorators import *
|
|
from lldbsuite.test.lldbtest import *
|
|
from lldbsuite.test import lldbutil
|
|
|
|
|
|
class BackticksWithNoTargetTestCase(TestBase):
|
|
|
|
@no_debug_info_test
|
|
def test_backticks_no_target(self):
|
|
"""A simple test of backticks without a target."""
|
|
self.expect("expression `1+2-3`",
|
|
substrs=[' = 0'])
|