unittests: Merge SystemTests back into SupportTests.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120330 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Michael J. Spencer 2010-11-29 22:29:04 +00:00
parent dffde99644
commit 013d15a677
4 changed files with 6 additions and 28 deletions

View File

@ -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
)

View File

@ -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(".");

View File

@ -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);

View File

@ -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