diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2013-07-16 02:03:32 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2013-07-16 02:03:32 +0000 |
commit | e7f0393f6d080f599f225dcdc440142e758ffe1b (patch) | |
tree | 2a849e049dab0da3a773c6fdc5828166dd50df5a /unittests | |
parent | 4172a8abbabea2359d91bb07101166565127d798 (diff) | |
download | llvm-e7f0393f6d080f599f225dcdc440142e758ffe1b.tar.gz llvm-e7f0393f6d080f599f225dcdc440142e758ffe1b.tar.bz2 llvm-e7f0393f6d080f599f225dcdc440142e758ffe1b.tar.xz |
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
Diffstat (limited to 'unittests')
-rw-r--r-- | unittests/Support/CMakeLists.txt | 2 | ||||
-rw-r--r-- | unittests/Support/TimeValueTest.cpp (renamed from unittests/Support/TimeValue.cpp) | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/unittests/Support/CMakeLists.txt b/unittests/Support/CMakeLists.txt index b66c5db2c3..fedfb3d225 100644 --- a/unittests/Support/CMakeLists.txt +++ b/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/unittests/Support/TimeValue.cpp b/unittests/Support/TimeValueTest.cpp index 27883ae335..0fd5675015 100644 --- a/unittests/Support/TimeValue.cpp +++ b/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<long>(now_t - now.toEpochTime())) < 2); |