2 from lldbsuite
.test
.decorators
import *
3 from lldbsuite
.test
.lldbtest
import *
4 from lldbsuite
.test
.lldbpexpect
import PExpectTest
7 class TestIOHandlerProcessSTDIO(PExpectTest
):
8 NO_DEBUG_INFO_TESTCASE
= True
10 # PExpect uses many timeouts internally and doesn't play well
11 # under ASAN on a loaded machine..
13 @skipIf(oslist
=["linux"], archs
=["arm", "aarch64"])
16 self
.launch(executable
=self
.getBuildArtifact("a.out"))
17 self
.child
.sendline("run")
19 self
.child
.send("foo\n")
20 self
.child
.expect_exact("stdout: foo")
22 self
.child
.send("bar\n")
23 self
.child
.expect_exact("stdout: bar")
25 self
.child
.send("baz\n")
26 self
.child
.expect_exact("stdout: baz")
28 self
.child
.sendcontrol("d")