mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-22 13:29:44 +00:00
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:
parent
4172a8abba
commit
e7f0393f6d
@ -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…
x
Reference in New Issue
Block a user