Files
clang-p2996/lldb/test/API/iohandler/stdio/TestIOHandlerProcessSTDIO.py
Jason Molenda 6d6feaf7e3 [lldb][NFC] update API tests which skip/expect-fail arm
The architectures provided to skipIf / expectedFail are regular
expressions (v. _match_decorator_property() in decorators.py
so on Darwin systems "arm64" would match the skips for "arm" (32-bit
Linux).  Update these to "arm$" to prevent this, and also update
three tests (TestBuiltinFormats.py, TestCrossDSOTailCalls.py,
TestCrossObjectTailCalls.py) that were skipped for arm64 via this
behavior, and need to be skipped or they will fail.

This was moviated by the new TestDynamicValue.py test which has
an expected-fail for arm, but the test was passing on arm64 Darwin
resulting in failure for the CIs.
2025-05-27 18:41:16 -07:00

30 lines
841 B
Python

import lldb
from lldbsuite.test.decorators import *
from lldbsuite.test.lldbtest import *
from lldbsuite.test.lldbpexpect import PExpectTest
class TestIOHandlerProcessSTDIO(PExpectTest):
NO_DEBUG_INFO_TESTCASE = True
# PExpect uses many timeouts internally and doesn't play well
# under ASAN on a loaded machine..
@skipIfAsan
@skipIf(oslist=["linux"], archs=["arm$", "aarch64"])
def test(self):
self.build()
self.launch(executable=self.getBuildArtifact("a.out"))
self.child.sendline("run")
self.child.send("foo\n")
self.child.expect_exact("stdout: foo")
self.child.send("bar\n")
self.child.expect_exact("stdout: bar")
self.child.send("baz\n")
self.child.expect_exact("stdout: baz")
self.child.sendcontrol("d")
self.quit()