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 read y", error=True, 11 substrs=["'y' is not a valid file descriptor."]) 12 # 'file read' takes an option, so this will be treated as an option. 13 self.expect("platform file read -1", error=True, 14 substrs=["unknown or ambiguous option"]) 15