From ad187dd20e2d3d37fb6dcece53581b99a1e345cc Mon Sep 17 00:00:00 2001 From: NAKAMURA Takumi Date: Tue, 16 Jul 2013 02:03:32 +0000 Subject: [PATCH] Rename Support.TimeValue to TimeValue.time_t in unittests/Support. llvm-svn: 186372 --- llvm/unittests/Support/CMakeLists.txt | 2 +- llvm/unittests/Support/{TimeValue.cpp => TimeValueTest.cpp} | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) rename llvm/unittests/Support/{TimeValue.cpp => TimeValueTest.cpp} (82%) diff --git a/llvm/unittests/Support/CMakeLists.txt b/llvm/unittests/Support/CMakeLists.txt index b66c5db2c3e5..fedfb3d22548 100644 --- a/llvm/unittests/Support/CMakeLists.txt +++ b/llvm/unittests/Support/CMakeLists.txt @@ -28,7 +28,7 @@ add_llvm_unittest(SupportTests ProgramTest.cpp RegexTest.cpp SwapByteOrderTest.cpp - TimeValue.cpp + TimeValueTest.cpp ValueHandleTest.cpp YAMLIOTest.cpp YAMLParserTest.cpp diff --git a/llvm/unittests/Support/TimeValue.cpp b/llvm/unittests/Support/TimeValueTest.cpp similarity index 82% rename from llvm/unittests/Support/TimeValue.cpp rename to llvm/unittests/Support/TimeValueTest.cpp index 27883ae33564..0fd567501517 100644 --- a/llvm/unittests/Support/TimeValue.cpp +++ b/llvm/unittests/Support/TimeValueTest.cpp @@ -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(now_t - now.toEpochTime())) < 2);