Rename Support.TimeValue to TimeValue.time_t in unittests/Support.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186372 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
NAKAMURA Takumi 2013-07-16 02:03:32 +00:00
parent 4172a8abba
commit e7f0393f6d
2 changed files with 3 additions and 3 deletions

View File

@ -28,7 +28,7 @@ add_llvm_unittest(SupportTests
ProgramTest.cpp
RegexTest.cpp
SwapByteOrderTest.cpp
TimeValue.cpp
TimeValueTest.cpp
ValueHandleTest.cpp
YAMLIOTest.cpp
YAMLParserTest.cpp

View File

@ -1,4 +1,4 @@
//===- llvm/unittest/Support/TimeValue.cpp - Time Value tests -------------===//
//===- llvm/unittest/Support/TimeValueTest.cpp - Time Value tests ---------===//
//
// The LLVM Compiler Infrastructure
//
@ -14,7 +14,7 @@
using namespace llvm;
namespace {
TEST(Support, TimeValue) {
TEST(TimeValue, time_t) {
sys::TimeValue now = sys::TimeValue::now();
time_t now_t = time(NULL);
EXPECT_TRUE(abs(static_cast<long>(now_t - now.toEpochTime())) < 2);