diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/data-formatter/data-formatter-objc/TestDataFormatterObjCNSData.py b/lldb/packages/Python/lldbsuite/test/functionalities/data-formatter/data-formatter-objc/TestDataFormatterObjCNSData.py index 37991ddb99d8ab..4fe687866f3bac 100644 --- a/lldb/packages/Python/lldbsuite/test/functionalities/data-formatter/data-formatter-objc/TestDataFormatterObjCNSData.py +++ b/lldb/packages/Python/lldbsuite/test/functionalities/data-formatter/data-formatter-objc/TestDataFormatterObjCNSData.py @@ -23,7 +23,7 @@ def nsdata_data_formatter_commands(self): self.expect( 'frame variable immutableData mutableData data_ref mutable_data_ref mutable_string_ref concreteData concreteMutableData', substrs=[ - '(NSData *) immutableData = ', ' 4 bytes', + '(NSData *) immutableData = ', ' 5 bytes', '(NSData *) mutableData = ', ' 14 bytes', '(CFDataRef) data_ref = ', '@"5 bytes"', '(CFMutableDataRef) mutable_data_ref = ', '@"5 bytes"', diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/data-formatter/data-formatter-objc/main.m b/lldb/packages/Python/lldbsuite/test/functionalities/data-formatter/data-formatter-objc/main.m index f0dc2055976a97..aac729c74590cf 100644 --- a/lldb/packages/Python/lldbsuite/test/functionalities/data-formatter/data-formatter-objc/main.m +++ b/lldb/packages/Python/lldbsuite/test/functionalities/data-formatter/data-formatter-objc/main.m @@ -401,7 +401,7 @@ int main (int argc, const char * argv[]) [mutableGetConst length]; - NSData *immutableData = [[NSData alloc] initWithBytes:"HELLO" length:4]; + NSData *immutableData = [[NSData alloc] initWithBytes:"HELLO" length:5]; NSData *mutableData = [[NSMutableData alloc] initWithBytes:"NODATA" length:6]; // No-copy versions of NSData initializers use NSConcreteData if over 2^16 elements are specified.