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 NO_DEBUG_INFO_TESTCASE = True 15 16 def test__calculator_mode(self): 17 """Test calling expressions in the dummy target.""" 18 self.expect("expression 11 + 22", "11 + 22 didn't get the expected result", substrs=["33"]) 19 # Now try it with a specific language: 20 self.expect("expression -l c -- 11 + 22", "11 + 22 didn't get the expected result", substrs=["33"]) 21 22