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