From 061da546b983eb767bad15e67af1174fb0bcf31c Mon Sep 17 00:00:00 2001 From: patrick Date: Mon, 3 Aug 2020 14:33:06 +0000 Subject: Import LLVM 10.0.0 release including clang, lld and lldb. ok hackroom tested by plenty --- .../test/iohandler/unicode/TestUnicode.py | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 gnu/llvm/lldb/packages/Python/lldbsuite/test/iohandler/unicode/TestUnicode.py (limited to 'gnu/llvm/lldb/packages/Python/lldbsuite/test/iohandler/unicode/TestUnicode.py') diff --git a/gnu/llvm/lldb/packages/Python/lldbsuite/test/iohandler/unicode/TestUnicode.py b/gnu/llvm/lldb/packages/Python/lldbsuite/test/iohandler/unicode/TestUnicode.py new file mode 100644 index 00000000000..c8ff9a6ab32 --- /dev/null +++ b/gnu/llvm/lldb/packages/Python/lldbsuite/test/iohandler/unicode/TestUnicode.py @@ -0,0 +1,27 @@ +# -*- 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() -- cgit v1.2.3-59-g8ed1b