Skip to content

Commit ff536ae

Browse files
committed
fixup: ro -> read-only
1 parent 499f723 commit ff536ae

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

lldb/test/API/functionalities/postmortem/elf-core/TestLinuxCore.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -978,10 +978,10 @@ def test_get_core_file_api(self):
978978
self.dbg.DeleteTarget(target)
979979

980980
@skipIfLLVMTargetMissing("X86")
981-
def test_ro_cstring(self):
981+
def test_read_only_cstring(self):
982982
"""
983983
Test that we can show the summary for a cstring variable that points
984-
to a r/o memory page which is not dumped to a core file.
984+
to a read-only memory page which is not dumped to a core file.
985985
"""
986986
target = self.dbg.CreateTarget("altmain2.out")
987987
process = target.LoadCore("altmain2.core")
@@ -992,8 +992,9 @@ def test_ro_cstring(self):
992992

993993
var = frame.FindVariable("F")
994994

995-
# The variable points to a RO segment that is not dumped to the core
996-
# file and thus process.ReadCStringFromMemory() cannot get the value.
995+
# The variable points to a read-only segment that is not dumped to
996+
# the core file and thus 'process.ReadCStringFromMemory()' cannot get
997+
# the value.
997998
error = lldb.SBError()
998999
cstr = process.ReadCStringFromMemory(var.GetValueAsUnsigned(), 256, error)
9991000
self.assertFailure(error, error_str="core file does not contain 0x804a000")

0 commit comments

Comments
 (0)