Revert "[lldb/test] Disable NSDate format check under _WIN32"
authorDmitri Gribenko <gribozavr@gmail.com>
Wed, 20 May 2020 09:58:59 +0000 (11:58 +0200)
committerDmitri Gribenko <gribozavr@gmail.com>
Wed, 20 May 2020 10:44:19 +0000 (12:44 +0200)
This reverts commit e3aa4cd9dbcee6441f51102e3958c35321698c67. It is a
follow-up to b783f70a42575a5d9147bea1ac97e872370fe55b, which I'm
reverting -- see the explanation in that revert.

lldb/unittests/DataFormatter/MockTests.cpp

index 1185d7b..752e398 100644 (file)
@@ -37,10 +37,6 @@ TEST(DataFormatterMockTest, NSDate) {
   EXPECT_EQ(formatDateValue(std::numeric_limits<time_t>::max()), llvm::None);
   EXPECT_EQ(formatDateValue(std::numeric_limits<time_t>::min()), llvm::None);
 
-  // FIXME: The formatting result is wrong on Windows because we adjust the
-  // epoch when _WIN32 is defined (see GetOSXEpoch).
-#ifndef _WIN32
   EXPECT_TRUE(
       llvm::StringRef(*formatDateValue(0)).startswith("2001-01-01 00:00:00"));
-#endif
 }