Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lldb / test / API / iohandler / unicode / TestUnicode.py
blob93e2ae38f82622012aa0df34312098d3ac8d615d
1 # -*- coding: utf-8 -*-
2 """
3 Test unicode handling in LLDB.
4 """
6 import os
8 import lldb
9 from lldbsuite.test.decorators import *
10 from lldbsuite.test.lldbtest import *
11 from lldbsuite.test.lldbpexpect import PExpectTest
14 class TestCase(PExpectTest):
15 # PExpect uses many timeouts internally and doesn't play well
16 # under ASAN on a loaded machine..
17 @skipIfAsan
18 @skipIf(oslist=["linux"], archs=["arm", "aarch64"]) # Randomly fails on buildbot
19 def test_unicode_input(self):
20 self.launch()
22 # Send some unicode input to LLDB.
23 # We should get back that this is an invalid command with our character as UTF-8.
24 self.expect(
25 "\u1234",
26 substrs=["error: '\u1234' is not a valid command.".encode("utf-8")],
29 self.quit()