1*9010cef2SRaphael Isemannimport lldb
2*9010cef2SRaphael Isemannfrom lldbsuite.test.decorators import *
3*9010cef2SRaphael Isemannfrom lldbsuite.test.lldbtest import *
4*9010cef2SRaphael Isemannfrom lldbsuite.test import lldbutil
5*9010cef2SRaphael Isemann
6*9010cef2SRaphael Isemannclass TestCase(TestBase):
7*9010cef2SRaphael Isemann
8*9010cef2SRaphael Isemann    @no_debug_info_test
9*9010cef2SRaphael Isemann    def test_file_close_invalid_arg(self):
10*9010cef2SRaphael Isemann        self.expect("platform file read y", error=True,
11*9010cef2SRaphael Isemann                    substrs=["'y' is not a valid file descriptor."])
12*9010cef2SRaphael Isemann        # 'file read' takes an option, so this will be treated as an option.
13*9010cef2SRaphael Isemann        self.expect("platform file read -1", error=True,
14*9010cef2SRaphael Isemann                    substrs=["unknown or ambiguous option"])
15