1import lldb
2from lldbsuite.test.decorators import *
3from lldbsuite.test.lldbtest import *
4from lldbsuite.test import lldbutil
5
6class TestCase(TestBase):
7
8    mydir = TestBase.compute_mydir(__file__)
9
10    @no_debug_info_test
11    def test_file_close_invalid_arg(self):
12        self.expect("platform file close y", error=True,
13                    substrs=["'y' is not a valid file descriptor."])
14        self.expect("platform file close -1", error=True,
15                    substrs=["'-1' is not a valid file descriptor."])
16