[PowerPC] Collect some CallLowering arguments into a struct. [NFC]
[llvm-project.git] / lldb / packages / Python / lldbsuite / test / iohandler / unicode / TestUnicode.py
blobc8ff9a6ab32dd93e990acb89e161917819e5a058
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
13 class TestCase(PExpectTest):
15 mydir = TestBase.compute_mydir(__file__)
17 # PExpect uses many timeouts internally and doesn't play well
18 # under ASAN on a loaded machine..
19 @skipIfAsan
20 def test_unicode_input(self):
21 self.launch()
23 # Send some unicode input to LLDB.
24 # We should get back that this is an invalid command with our character as UTF-8.
25 self.expect(u'\u1234', substrs=[u"error: '\u1234' is not a valid command.".encode('utf-8')])
27 self.quit()