diff options
author | Michael J. Spencer <bigcheesegs@gmail.com> | 2010-11-29 22:29:04 +0000 |
---|---|---|
committer | Michael J. Spencer <bigcheesegs@gmail.com> | 2010-11-29 22:29:04 +0000 |
commit | 3ef91c5593c2a6afced67d618a31ded9a332ade4 (patch) | |
tree | adac46f6704d9c1319be75b298f5d27a07b39585 | |
parent | ebad2f9d363e2554da497cf9f76cc16bef46e62f (diff) | |
download | bcm5719-llvm-3ef91c5593c2a6afced67d618a31ded9a332ade4.tar.gz bcm5719-llvm-3ef91c5593c2a6afced67d618a31ded9a332ade4.zip |
unittests: Merge SystemTests back into SupportTests.
llvm-svn: 120330
-rw-r--r-- | llvm/unittests/CMakeLists.txt | 11 | ||||
-rw-r--r-- | llvm/unittests/Support/Path.cpp (renamed from llvm/unittests/System/Path.cpp) | 4 | ||||
-rw-r--r-- | llvm/unittests/Support/TimeValue.cpp (renamed from llvm/unittests/System/TimeValue.cpp) | 4 | ||||
-rw-r--r-- | llvm/unittests/System/Makefile | 15 |
4 files changed, 6 insertions, 28 deletions
diff --git a/llvm/unittests/CMakeLists.txt b/llvm/unittests/CMakeLists.txt index 8551eb81bc7..c64ab3ce082 100644 --- a/llvm/unittests/CMakeLists.txt +++ b/llvm/unittests/CMakeLists.txt @@ -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 - ) diff --git a/llvm/unittests/System/Path.cpp b/llvm/unittests/Support/Path.cpp index daeb0175d25..8be45de76b5 100644 --- a/llvm/unittests/System/Path.cpp +++ b/llvm/unittests/Support/Path.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("."); diff --git a/llvm/unittests/System/TimeValue.cpp b/llvm/unittests/Support/TimeValue.cpp index 7fd7c9256f4..27883ae3356 100644 --- a/llvm/unittests/System/TimeValue.cpp +++ b/llvm/unittests/Support/TimeValue.cpp @@ -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); diff --git a/llvm/unittests/System/Makefile b/llvm/unittests/System/Makefile deleted file mode 100644 index 096a7618947..00000000000 --- a/llvm/unittests/System/Makefile +++ /dev/null @@ -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 |