From 0f1195a58648998d21bcfa1575a78a4706eaa52c Mon Sep 17 00:00:00 2001 From: Dmitri Gribenko Date: Wed, 20 May 2020 11:59:27 +0200 Subject: [PATCH] Revert "[lldb/test] Relax NSDate mock test for non-Apple platforms" This reverts commit fff3a8464d4d518c7086c928fba967908eb294d7. It is a follow-up to b783f70a42575a5d9147bea1ac97e872370fe55b, which I'm reverting -- see the explanation in that revert. --- lldb/unittests/DataFormatter/MockTests.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lldb/unittests/DataFormatter/MockTests.cpp b/lldb/unittests/DataFormatter/MockTests.cpp index 752e398..0042888 100644 --- a/lldb/unittests/DataFormatter/MockTests.cpp +++ b/lldb/unittests/DataFormatter/MockTests.cpp @@ -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 @@ -37,6 +36,5 @@ TEST(DataFormatterMockTest, NSDate) { EXPECT_EQ(formatDateValue(std::numeric_limits::max()), llvm::None); EXPECT_EQ(formatDateValue(std::numeric_limits::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"); } -- 2.7.4