brintos

brintos / llvm-project-archived public Read only

0
0
Text · 570 B · 257f9c3 Raw
19 lines · python
1import lldb2from lldbsuite.test.decorators import *3from lldbsuite.test.lldbtest import *4from lldbsuite.test import lldbutil5 6 7class TestCase(TestBase):8    @no_debug_info_test9    def test_file_close_invalid_arg(self):10        self.expect(11            "platform file read y",12            error=True,13            substrs=["'y' is not a valid file descriptor."],14        )15        # 'file read' takes an option, so this will be treated as an option.16        self.expect(17            "platform file read -1", error=True, substrs=["unknown or ambiguous option"]18        )19