summaryrefslogtreecommitdiffstats
path: root/lldb/test/lang/cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/test/lang/cpp')
-rw-r--r--lldb/test/lang/cpp/class_types/TestClassTypes.py2
-rw-r--r--lldb/test/lang/cpp/stl/TestStdCXXDisassembly.py6
2 files changed, 4 insertions, 4 deletions
diff --git a/lldb/test/lang/cpp/class_types/TestClassTypes.py b/lldb/test/lang/cpp/class_types/TestClassTypes.py
index 4be117a0d0a..21bb489264b 100644
--- a/lldb/test/lang/cpp/class_types/TestClassTypes.py
+++ b/lldb/test/lang/cpp/class_types/TestClassTypes.py
@@ -114,7 +114,7 @@ class ClassTypesTestCase(TestBase):
self.assertTrue(breakpoint, VALID_BREAKPOINT)
# Verify the breakpoint just created.
- self.expect(repr(breakpoint), BREAKPOINT_CREATED, exe=False,
+ self.expect(str(breakpoint), BREAKPOINT_CREATED, exe=False,
substrs = ['main.cpp',
str(self.line)])
diff --git a/lldb/test/lang/cpp/stl/TestStdCXXDisassembly.py b/lldb/test/lang/cpp/stl/TestStdCXXDisassembly.py
index 64aba7f3dde..80a224e5307 100644
--- a/lldb/test/lang/cpp/stl/TestStdCXXDisassembly.py
+++ b/lldb/test/lang/cpp/stl/TestStdCXXDisassembly.py
@@ -43,7 +43,7 @@ class StdCXXDisassembleTestCase(TestBase):
process = target.GetProcess()
# The process should be in a 'stopped' state.
- self.expect(repr(process), STOPPED_DUE_TO_BREAKPOINT, exe=False,
+ self.expect(str(process), STOPPED_DUE_TO_BREAKPOINT, exe=False,
substrs = ["a.out",
"stopped"])
@@ -61,7 +61,7 @@ class StdCXXDisassembleTestCase(TestBase):
module = target.GetModuleAtIndex(i)
fs = module.GetFileSpec()
if (fs.GetFilename().startswith("libstdc++")):
- lib_stdcxx = repr(fs)
+ lib_stdcxx = str(fs)
break
# At this point, lib_stdcxx is the full path to the stdc++ library and
@@ -70,7 +70,7 @@ class StdCXXDisassembleTestCase(TestBase):
self.expect(fs.GetFilename(), "Libraray StdC++ is located", exe=False,
substrs = ["libstdc++"])
- self.runCmd("image dump symtab %s" % repr(fs))
+ self.runCmd("image dump symtab %s" % str(fs))
raw_output = self.res.GetOutput()
# Now, look for every 'Code' symbol and feed its load address into the
# command: 'disassemble -s load_address -e end_address', where the
OpenPOWER on IntegriCloud