From: Raphael Isemann Date: Wed, 5 Feb 2020 13:07:19 +0000 (+0100) Subject: [lldb] Revert some change in data-formatter-objc/main.m that broke TestDataFormatterO... X-Git-Tag: llvmorg-12-init~15701 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=706256b6d3972dcfa2d3e888d0640e1689c4be95;p=platform%2Fupstream%2Fllvm.git [lldb] Revert some change in data-formatter-objc/main.m that broke TestDataFormatterObjCNSDate.py Changing the date2 to an timezone independent value broke the test as the data formatters uses the current time zone for the summary (so changing it to a time zone independent value would again break the test in some time zones). We anyway just care about this for date2 which will be printed in a timezone-independent summary. --- 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 81ac218..d0fa275 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 @@ -502,7 +502,7 @@ int main (int argc, const char * argv[]) NSURL *nsurl3 = [NSURL URLWithString:@"?whatever" relativeToURL:nsurl2]; NSDate *date1 = [NSDate dateWithTimeIntervalSince1970:133890*60*60]; // 6pm April 10, 1985 GMT - NSDate *date2 = [NSDate dateWithTimeIntervalSince1970:14975*24*60*60]; // 12am January 1, 2011 GMT + NSDate *date2 = [NSDate dateWithNaturalLanguageString:@"12am January 1, 2011"]; NSDate *date3 = [NSDate date]; NSDate *date4 = [NSDate dateWithTimeIntervalSince1970:24*60*60]; NSDate *date5 = [NSDate dateWithTimeIntervalSinceReferenceDate: floor([[NSDate date] timeIntervalSinceReferenceDate])];