summaryrefslogtreecommitdiff
path: root/unittests/Support/TimeValue.cpp
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2013-12-22 00:04:03 +0000
committerDimitry Andric <dim@FreeBSD.org>2013-12-22 00:04:03 +0000
commitf8af5cf600354830d4ccf59732403f0f073eccb9 (patch)
tree2ba0398b4c42ad4f55561327538044fd2c925a8b /unittests/Support/TimeValue.cpp
parent59d6cff90eecf31cb3dd860c4e786674cfdd42eb (diff)
Diffstat (limited to 'unittests/Support/TimeValue.cpp')
-rw-r--r--unittests/Support/TimeValue.cpp23
1 files changed, 0 insertions, 23 deletions
diff --git a/unittests/Support/TimeValue.cpp b/unittests/Support/TimeValue.cpp
deleted file mode 100644
index 27883ae335640..0000000000000
--- a/unittests/Support/TimeValue.cpp
+++ /dev/null
@@ -1,23 +0,0 @@
-//===- llvm/unittest/Support/TimeValue.cpp - Time Value tests -------------===//
-//
-// The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-
-#include "gtest/gtest.h"
-#include "llvm/Support/TimeValue.h"
-#include <time.h>
-
-using namespace llvm;
-namespace {
-
-TEST(Support, TimeValue) {
- sys::TimeValue now = sys::TimeValue::now();
- time_t now_t = time(NULL);
- EXPECT_TRUE(abs(static_cast<long>(now_t - now.toEpochTime())) < 2);
-}
-
-}