1import lldb 2from lldbsuite.test.lldbtest import * 3from lldbsuite.test.decorators import * 4import lldbsuite.test.lldbutil as lldbutil 5 6class TestCase(TestBase): 7 8 mydir = TestBase.compute_mydir(__file__) 9 10 @no_debug_info_test 11 def test_invalid_arg(self): 12 self.build() 13 exe = self.getBuildArtifact("a.out") 14 15 self.expect("target create %s" % (exe)) 16 self.expect("target modules search-paths insert -1 a b", error=True, 17 startstr="error: <index> parameter is not an integer: '-1'.") 18 19 self.expect("target modules search-paths insert abcdefx a b", error=True, 20 startstr="error: <index> parameter is not an integer: 'abcdefx'.") 21