forked from OSchip/llvm-project
unittests: Merge SystemTests back into SupportTests.
llvm-svn: 120330
This commit is contained in:
parent
ebad2f9d36
commit
3ef91c5593
|
@ -120,18 +120,11 @@ add_llvm_unittest(Support
|
|||
Support/EndianTest.cpp
|
||||
Support/LeakDetectorTest.cpp
|
||||
Support/MathExtrasTest.cpp
|
||||
Support/Path.cpp
|
||||
Support/raw_ostream_test.cpp
|
||||
Support/RegexTest.cpp
|
||||
Support/SwapByteOrderTest.cpp
|
||||
Support/TimeValue.cpp
|
||||
Support/TypeBuilderTest.cpp
|
||||
Support/ValueHandleTest.cpp
|
||||
)
|
||||
|
||||
set(LLVM_LINK_COMPONENTS
|
||||
Support
|
||||
)
|
||||
|
||||
add_llvm_unittest(System
|
||||
System/Path.cpp
|
||||
System/TimeValue.cpp
|
||||
)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
//===- llvm/unittest/System/Path.cpp - Path tests -------------------------===//
|
||||
//===- llvm/unittest/Support/Path.cpp - Path tests ------------------------===//
|
||||
//
|
||||
// The LLVM Compiler Infrastructure
|
||||
//
|
||||
|
@ -15,7 +15,7 @@ using namespace llvm;
|
|||
|
||||
namespace {
|
||||
|
||||
TEST(System, Path) {
|
||||
TEST(Support, Path) {
|
||||
SmallVector<StringRef, 40> paths;
|
||||
paths.push_back("");
|
||||
paths.push_back(".");
|
|
@ -1,4 +1,4 @@
|
|||
//===- llvm/unittest/System/TimeValue.cpp - Time Vlaue tests --------------===//
|
||||
//===- llvm/unittest/Support/TimeValue.cpp - Time Value tests -------------===//
|
||||
//
|
||||
// The LLVM Compiler Infrastructure
|
||||
//
|
||||
|
@ -14,7 +14,7 @@
|
|||
using namespace llvm;
|
||||
namespace {
|
||||
|
||||
TEST(System, TimeValue) {
|
||||
TEST(Support, TimeValue) {
|
||||
sys::TimeValue now = sys::TimeValue::now();
|
||||
time_t now_t = time(NULL);
|
||||
EXPECT_TRUE(abs(static_cast<long>(now_t - now.toEpochTime())) < 2);
|
|
@ -1,15 +0,0 @@
|
|||
##===- unittests/System/Makefile ---------------------------*- Makefile -*-===##
|
||||
#
|
||||
# The LLVM Compiler Infrastructure
|
||||
#
|
||||
# This file is distributed under the University of Illinois Open Source
|
||||
# License. See LICENSE.TXT for details.
|
||||
#
|
||||
##===----------------------------------------------------------------------===##
|
||||
|
||||
LEVEL = ../..
|
||||
TESTNAME = System
|
||||
LINK_COMPONENTS := support
|
||||
|
||||
include $(LEVEL)/Makefile.config
|
||||
include $(LLVM_SRC_ROOT)/unittests/Makefile.unittest
|
Loading…
Reference in New Issue