[Lldb-commits] [lldb] 0f1195a - Revert "[lldb/test] Relax NSDate mock test for non-Apple platforms"
Dmitri Gribenko via lldb-commits
lldb-commits at lists.llvm.org
Wed May 20 03:46:55 PDT 2020
Author: Dmitri Gribenko
Date: 2020-05-20T12:44:19+02:00
New Revision: 0f1195a58648998d21bcfa1575a78a4706eaa52c
URL: https://github.com/llvm/llvm-project/commit/0f1195a58648998d21bcfa1575a78a4706eaa52c
DIFF: https://github.com/llvm/llvm-project/commit/0f1195a58648998d21bcfa1575a78a4706eaa52c.diff
LOG: 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.
Added:
Modified:
lldb/unittests/DataFormatter/MockTests.cpp
Removed:
################################################################################
diff --git a/lldb/unittests/DataFormatter/MockTests.cpp b/lldb/unittests/DataFormatter/MockTests.cpp
index 752e3987dac9..0042888243f7 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 <string>
@@ -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");
}
More information about the lldb-commits
mailing list