Skip to content

Commit

Permalink
Revert "[lldb/test] Relax NSDate mock test for non-Apple platforms"
Browse files Browse the repository at this point in the history
This reverts commit fff3a84. It is a
follow-up to b783f70, which I'm
reverting -- see the explanation in that revert.
  • Loading branch information
gribozavr committed May 20, 2020
1 parent f67f9e8 commit 0f1195a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lldb/unittests/DataFormatter/MockTests.cpp
Expand Up @@ -9,7 +9,6 @@
#include "lldb/DataFormatters/Mock.h"
#include "lldb/Utility/StreamString.h"
#include "llvm/ADT/Optional.h"
#include "llvm/ADT/StringRef.h"
#include "gtest/gtest.h"
#include <string>

Expand Down Expand Up @@ -37,6 +36,5 @@ 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);

EXPECT_TRUE(
llvm::StringRef(*formatDateValue(0)).startswith("2001-01-01 00:00:00"));
EXPECT_EQ(*formatDateValue(0), "2001-01-01 00:00:00 UTC");
}

0 comments on commit 0f1195a

Please sign in to comment.