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