1"""
2Test calling an expression without a target.
3"""
4
5
6
7import lldb
8from lldbsuite.test.decorators import *
9from lldbsuite.test.lldbtest import *
10from lldbsuite.test import lldbutil
11
12
13class TestCalculatorMode(TestBase):
14
15    mydir = TestBase.compute_mydir(__file__)
16    NO_DEBUG_INFO_TESTCASE = True
17
18    def test__calculator_mode(self):
19        """Test calling expressions in the dummy target."""
20        self.expect("expression 11 + 22", "11 + 22 didn't get the expected result", substrs=["33"])
21        # Now try it with a specific language:
22        self.expect("expression -l c -- 11 + 22", "11 + 22 didn't get the expected result", substrs=["33"])
23
24