OSDN Git Service

Rename Support.TimeValue to TimeValue.time_t in unittests/Support.
authorNAKAMURA Takumi <geek4civic@gmail.com>
Tue, 16 Jul 2013 02:03:32 +0000 (02:03 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Tue, 16 Jul 2013 02:03:32 +0000 (02:03 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186372 91177308-0d34-0410-b5e6-96231b3b80d8

unittests/Support/CMakeLists.txt
unittests/Support/TimeValueTest.cpp [moved from unittests/Support/TimeValue.cpp with 82% similarity]

index b66c5db..fedfb3d 100644 (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
similarity index 82%
rename from unittests/Support/TimeValue.cpp
rename to unittests/Support/TimeValueTest.cpp
index 27883ae..0fd5675 100644 (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);