forked from OSchip/llvm-project
Rename Support.TimeValue to TimeValue.time_t in unittests/Support.
llvm-svn: 186372
This commit is contained in:
parent
d3a34f81f8
commit
ad187dd20e
|
@ -28,7 +28,7 @@ add_llvm_unittest(SupportTests
|
|||
ProgramTest.cpp
|
||||
RegexTest.cpp
|
||||
SwapByteOrderTest.cpp
|
||||
TimeValue.cpp
|
||||
TimeValueTest.cpp
|
||||
ValueHandleTest.cpp
|
||||
YAMLIOTest.cpp
|
||||
YAMLParserTest.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);
|
Loading…
Reference in New Issue