1import lldb 2from lldbsuite.test.lldbtest import * 3from lldbsuite.test.decorators import * 4 5class InvalidArgsExpressionTestCase(TestBase): 6 7 @no_debug_info_test 8 def test_invalid_lang(self): 9 self.expect("expression -l foo --", error=True, 10 substrs=["error: unknown language type: 'foo' for expression"]) 11 12 @no_debug_info_test 13 def test_invalid_all_thread(self): 14 self.expect("expression -a foo --", error=True, 15 substrs=['error: invalid all-threads value setting: "foo"']) 16 17 @no_debug_info_test 18 def test_invalid_ignore_br(self): 19 self.expect("expression -i foo --", error=True, 20 substrs=['error: could not convert "foo" to a boolean value.']) 21 22 @no_debug_info_test 23 def test_invalid_allow_jit(self): 24 self.expect("expression -j foo --", error=True, 25 substrs=['error: could not convert "foo" to a boolean value.']) 26 27 @no_debug_info_test 28 def test_invalid_timeout(self): 29 self.expect("expression -t foo --", error=True, 30 substrs=['error: invalid timeout setting "foo"']) 31 32 self.expect("expression -t \"\" --", error=True, 33 substrs=['error: invalid timeout setting ""']) 34 35 @no_debug_info_test 36 def test_invalid_unwind(self): 37 self.expect("expression -u foo --", error=True, 38 substrs=['error: could not convert "foo" to a boolean value.']) 39 40 @no_debug_info_test 41 def test_invalid_fixits(self): 42 self.expect("expression -X foo --", error=True, 43 substrs=['error: could not convert "foo" to a boolean value.']) 44