2 from lldbsuite.test.lldbtest import *
3 from lldbsuite.test.decorators import *
5 class InvalidArgsExpressionTestCase(TestBase):
7 mydir = TestBase.compute_mydir(__file__)
10 def test_invalid_lang(self):
11 self.expect("expression -l foo --", error=True,
12 substrs=["error: unknown language type: 'foo' for expression"])
15 def test_invalid_all_thread(self):
16 self.expect("expression -a foo --", error=True,
17 substrs=['error: invalid all-threads value setting: "foo"'])
20 def test_invalid_ignore_br(self):
21 self.expect("expression -i foo --", error=True,
22 substrs=['error: could not convert "foo" to a boolean value.'])
25 def test_invalid_allow_jit(self):
26 self.expect("expression -j foo --", error=True,
27 substrs=['error: could not convert "foo" to a boolean value.'])
30 def test_invalid_timeout(self):
31 self.expect("expression -t foo --", error=True,
32 substrs=['error: invalid timeout setting "foo"'])
34 self.expect("expression -t \"\" --", error=True,
35 substrs=['error: invalid timeout setting ""'])
38 def test_invalid_unwind(self):
39 self.expect("expression -u foo --", error=True,
40 substrs=['error: could not convert "foo" to a boolean value.'])
43 def test_invalid_fixits(self):
44 self.expect("expression -X foo --", error=True,
45 substrs=['error: could not convert "foo" to a boolean value.'])