You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
726 B
28 lines
726 B
7 months ago
|
# -*- 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):
|
||
|
|
||
|
mydir = TestBase.compute_mydir(__file__)
|
||
|
|
||
|
# PExpect uses many timeouts internally and doesn't play well
|
||
|
# under ASAN on a loaded machine..
|
||
|
@skipIfAsan
|
||
|
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(u'\u1234', substrs=[u"error: '\u1234' is not a valid command.".encode('utf-8')])
|
||
|
|
||
|
self.quit()
|