summaryrefslogtreecommitdiff
path: root/unittests
diff options
context:
space:
mode:
authorDmitri Gribenko <gribozavr@gmail.com>2014-02-11 09:11:18 +0000
committerDmitri Gribenko <gribozavr@gmail.com>2014-02-11 09:11:18 +0000
commitd4ab7d1b697d63278a0c4d1c14d3d165a3abdbef (patch)
tree0bd16b9a8f03c2ccfc19e97901d624e06fa060d9 /unittests
parente4092e9895fb8f62202b61586d76f8129991b16e (diff)
downloadllvm-d4ab7d1b697d63278a0c4d1c14d3d165a3abdbef.tar.gz
llvm-d4ab7d1b697d63278a0c4d1c14d3d165a3abdbef.tar.bz2
llvm-d4ab7d1b697d63278a0c4d1c14d3d165a3abdbef.tar.xz
Remove TimeValue::toPosixTime() -- it is buggy, semantics are unclear, and its
only current user should be using toEpochTime() instead. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201136 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests')
-rw-r--r--unittests/Support/TimeValueTest.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/unittests/Support/TimeValueTest.cpp b/unittests/Support/TimeValueTest.cpp
index fb2abe3829..e0368d3d40 100644
--- a/unittests/Support/TimeValueTest.cpp
+++ b/unittests/Support/TimeValueTest.cpp
@@ -30,7 +30,8 @@ TEST(TimeValue, Win32FILETIME) {
epoch.fromWin32Time(ft1970);
// The "seconds" part in Posix time may be expected as zero.
- EXPECT_EQ(ns / 100, epoch.toPosixTime());
+ EXPECT_EQ(0u, epoch.toEpochTime());
+ EXPECT_EQ(ns, static_cast<uint32_t>(epoch.nanoseconds()));
// Confirm it reversible.
EXPECT_EQ(ft1970, epoch.toWin32Time());