[lldb] Make TestDataFormatterObjCCF.py pass outside California
authorRaphael Isemann <teemperor@gmail.com>
Wed, 5 Feb 2020 12:23:49 +0000 (13:23 +0100)
committerRaphael Isemann <teemperor@gmail.com>
Wed, 5 Feb 2020 12:24:06 +0000 (13:24 +0100)
commit8d8bd0d6548ed9d2482de341c1b0e53449e5c564
tree0f211a5c2740ca947ca907df59460b943402b7f7
parentf780e15caf1bed0a9fbc87fde70bd5ab3d80a439
[lldb] Make TestDataFormatterObjCCF.py pass outside California

Summary:
This test creates its dates with `NSDate dateWithNaturalLanguageString` which is deprecated and uses the current time zone of the machine to
interpret the input string. This causes that the created NSDate has a different value depending on the locale of the machine
and we hardcoded the value for California's time zone (PST) but the data formatter gives out the GMT value as a string.

This just replaces the use with the timezone-independent dateWithTimeIntervalSince1970 (which we also use in the rest of the test)
to make this pass independently of the time zone of the machine running the test.

Reviewers: mib

Reviewed By: mib

Subscribers: lldb-commits, JDevlieghere

Tags: #lldb

Differential Revision: https://reviews.llvm.org/D74038
lldb/packages/Python/lldbsuite/test/functionalities/data-formatter/data-formatter-objc/TestDataFormatterObjCCF.py
lldb/packages/Python/lldbsuite/test/functionalities/data-formatter/data-formatter-objc/main.m