brintos

brintos / llvm-project-archived public Read only

0
0
Text · 841 B · 27299f9 Raw
30 lines · python
1import lldb2from lldbsuite.test.decorators import *3from lldbsuite.test.lldbtest import *4from lldbsuite.test.lldbpexpect import PExpectTest5 6 7class TestIOHandlerProcessSTDIO(PExpectTest):8    NO_DEBUG_INFO_TESTCASE = True9 10    # PExpect uses many timeouts internally and doesn't play well11    # under ASAN on a loaded machine..12    @skipIfAsan13    @skipIf(oslist=["linux"], archs=["arm$", "aarch64"])14    def test(self):15        self.build()16        self.launch(executable=self.getBuildArtifact("a.out"))17        self.child.sendline("run")18 19        self.child.send("foo\n")20        self.child.expect_exact("stdout: foo")21 22        self.child.send("bar\n")23        self.child.expect_exact("stdout: bar")24 25        self.child.send("baz\n")26        self.child.expect_exact("stdout: baz")27 28        self.child.sendcontrol("d")29        self.quit()30