aboutsummaryrefslogtreecommitdiff
path: root/test/lang
diff options
context:
space:
mode:
authorAshok Thirumurthi <ashok.thirumurthi@intel.com>2013-04-19 15:58:38 +0000
committerAshok Thirumurthi <ashok.thirumurthi@intel.com>2013-04-19 15:58:38 +0000
commit347d722127cc6a19b077244305c3d350ea4ef80e (patch)
tree52c5fa03b69310fef000ac842068a968ae9713bb /test/lang
parent2ce786d8238bbfb4f1cde19d5340d646631e499f (diff)
downloadlldb-347d722127cc6a19b077244305c3d350ea4ef80e.tar.gz
Provided a variant of ReadCStringFromMemory that supports null terminators of any character width.
This prevents unbounded reads (i.e. reads of GetMaximumSizeOfStringSummary() bytes) from causing test failures (i.e. due to ptrace EIO or EFAULT on Linux). Note that ReadCStringFromMemory is marked as deprecated because the loop that calls ReadMemory does not continue until the string has been completely read. The expected behavior is to read until until max_bytes or a null terminator. Note: As discussed on lldb-dev, further testing will be performed with ReadStringFromMemory before further changes are made for users of ReadCStringFromMemory. Thanks to Enrico, Matt and Andy for their review feedback. git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@179857 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/lang')
-rw-r--r--test/lang/cpp/char1632_t/TestChar1632T.py1
-rw-r--r--test/lang/cpp/wchar_t/TestCxxWCharT.py1
2 files changed, 0 insertions, 2 deletions
diff --git a/test/lang/cpp/char1632_t/TestChar1632T.py b/test/lang/cpp/char1632_t/TestChar1632T.py
index 17a6d7c59..bd93ce827 100644
--- a/test/lang/cpp/char1632_t/TestChar1632T.py
+++ b/test/lang/cpp/char1632_t/TestChar1632T.py
@@ -20,7 +20,6 @@ class Char1632TestCase(TestBase):
self.buildDsym()
self.char1632()
- @expectedFailureLinux # bugzilla 15038: missing wide char support on Linux
@dwarf_test
def test_with_dwarf(self):
"""Test that the C++11 support for char16_t and char32_t works correctly."""
diff --git a/test/lang/cpp/wchar_t/TestCxxWCharT.py b/test/lang/cpp/wchar_t/TestCxxWCharT.py
index 734f77b48..52fab1f98 100644
--- a/test/lang/cpp/wchar_t/TestCxxWCharT.py
+++ b/test/lang/cpp/wchar_t/TestCxxWCharT.py
@@ -20,7 +20,6 @@ class CxxWCharTTestCase(TestBase):
self.buildDsym()
self.wchar_t()
- @expectedFailureLinux # bugzilla 15038: missing wide char support on Linux
@dwarf_test
def test_with_dwarf(self):
"""Test that C++ supports wchar_t correctly."""