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.
31 lines
842 B
Python
31 lines
842 B
Python
# -*- coding: utf-8 -*-
|
|
"""
|
|
Test unicode handling in LLDB.
|
|
"""
|
|
|
|
import os
|
|
|
|
import lldb
|
|
from lldbsuite.test.decorators import *
|
|
from lldbsuite.test.lldbtest import *
|
|
from lldbsuite.test.lldbpexpect import PExpectTest
|
|
|
|
|
|
class TestCase(PExpectTest):
|
|
# PExpect uses many timeouts internally and doesn't play well
|
|
# under ASAN on a loaded machine..
|
|
@skipIfAsan
|
|
@skipIf(oslist=["linux"], archs=["arm$", "aarch64"]) # Randomly fails on buildbot
|
|
@skipIfEditlineWideCharSupportMissing
|
|
def test_unicode_input(self):
|
|
self.launch()
|
|
|
|
# Send some unicode input to LLDB.
|
|
# We should get back that this is an invalid command with our character as UTF-8.
|
|
self.expect(
|
|
"\u1234",
|
|
substrs=["error: '\u1234' is not a valid command.".encode("utf-8")],
|
|
)
|
|
|
|
self.quit()
|