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