mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-15 23:31:37 +00:00
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:
parent
dffde99644
commit
013d15a677
@ -120,18 +120,11 @@ add_llvm_unittest(Support
|
|||||||
Support/EndianTest.cpp
|
Support/EndianTest.cpp
|
||||||
Support/LeakDetectorTest.cpp
|
Support/LeakDetectorTest.cpp
|
||||||
Support/MathExtrasTest.cpp
|
Support/MathExtrasTest.cpp
|
||||||
|
Support/Path.cpp
|
||||||
Support/raw_ostream_test.cpp
|
Support/raw_ostream_test.cpp
|
||||||
Support/RegexTest.cpp
|
Support/RegexTest.cpp
|
||||||
Support/SwapByteOrderTest.cpp
|
Support/SwapByteOrderTest.cpp
|
||||||
|
Support/TimeValue.cpp
|
||||||
Support/TypeBuilderTest.cpp
|
Support/TypeBuilderTest.cpp
|
||||||
Support/ValueHandleTest.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
|
// The LLVM Compiler Infrastructure
|
||||||
//
|
//
|
||||||
@ -15,7 +15,7 @@ using namespace llvm;
|
|||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
TEST(System, Path) {
|
TEST(Support, Path) {
|
||||||
SmallVector<StringRef, 40> paths;
|
SmallVector<StringRef, 40> paths;
|
||||||
paths.push_back("");
|
paths.push_back("");
|
||||||
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
|
// The LLVM Compiler Infrastructure
|
||||||
//
|
//
|
||||||
@ -14,7 +14,7 @@
|
|||||||
using namespace llvm;
|
using namespace llvm;
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
TEST(System, TimeValue) {
|
TEST(Support, TimeValue) {
|
||||||
sys::TimeValue now = sys::TimeValue::now();
|
sys::TimeValue now = sys::TimeValue::now();
|
||||||
time_t now_t = time(NULL);
|
time_t now_t = time(NULL);
|
||||||
EXPECT_TRUE(abs(static_cast<long>(now_t - now.toEpochTime())) < 2);
|
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…
x
Reference in New Issue
Block a user