3 Test that the expression parser returns proper Unicode strings.
8 from lldbsuite
.test
.decorators
import *
9 from lldbsuite
.test
.lldbtest
import *
10 from lldbsuite
.test
import lldbutil
12 # this test case fails because of rdar://12991846
13 # the expression parser does not deal correctly with Unicode expressions
15 # (lldb) expr L"Hello"
16 # (const wchar_t [6]) $0 = {
26 class UnicodeLiteralsTestCase(TestBase
):
28 """Test that the expression parser returns proper Unicode strings."""
29 self
.rdar12991846(expr
=1)
32 """Test that the expression parser returns proper Unicode strings."""
33 self
.rdar12991846(expr
=2)
36 """Test that the expression parser returns proper Unicode strings."""
37 self
.rdar12991846(expr
=3)
39 def rdar12991846(self
, expr
=None):
40 """Test that the expression parser returns proper Unicode strings."""
41 if self
.getArchitecture() in ["i386"]:
42 self
.skipTest("Skipping because this test is known to crash on i386")
45 lldbutil
.run_to_source_breakpoint(
46 self
, "// Set break point at this line", lldb
.SBFileSpec("main.cpp")
50 self
.expect('expression L"hello"', substrs
=["hello"])
53 self
.expect('expression u"hello"', substrs
=["hello"])
56 self
.expect('expression U"hello"', substrs
=["hello"])