diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2014-12-04 16:59:36 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2014-12-04 16:59:36 +0000 |
commit | 3f598f77bd9ab51485fdb939345bbb865f7c2f9c (patch) | |
tree | 54b590f050ec36e66ccf5f70cfab501314b90aca /unittests | |
parent | 9571274787ad87cdd8e6867dc0a49e4d0642f0da (diff) |
Remove dead code. NFC.
This interface was added 2 years ago but users never developed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@223368 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests')
-rw-r--r-- | unittests/Support/MemoryTest.cpp | 2 | ||||
-rw-r--r-- | unittests/Support/ProcessTest.cpp | 20 |
2 files changed, 1 insertions, 21 deletions
diff --git a/unittests/Support/MemoryTest.cpp b/unittests/Support/MemoryTest.cpp index 8ad90e045de..f439cb2af9b 100644 --- a/unittests/Support/MemoryTest.cpp +++ b/unittests/Support/MemoryTest.cpp @@ -21,7 +21,7 @@ class MappedMemoryTest : public ::testing::TestWithParam<unsigned> { public: MappedMemoryTest() { Flags = GetParam(); - PageSize = sys::process::get_self()->page_size(); + PageSize = sys::Process::getPageSize(); } protected: diff --git a/unittests/Support/ProcessTest.cpp b/unittests/Support/ProcessTest.cpp index 3045c305bc5..298a0a37323 100644 --- a/unittests/Support/ProcessTest.cpp +++ b/unittests/Support/ProcessTest.cpp @@ -19,26 +19,6 @@ namespace { using namespace llvm; using namespace sys; -TEST(ProcessTest, SelfProcess) { - EXPECT_TRUE(process::get_self()); - EXPECT_EQ(process::get_self(), process::get_self()); - -#if defined(LLVM_ON_UNIX) - EXPECT_EQ(getpid(), process::get_self()->get_id()); -#elif defined(LLVM_ON_WIN32) - EXPECT_EQ(GetCurrentProcessId(), process::get_self()->get_id()); -#endif - - EXPECT_LT(1u, process::get_self()->page_size()); - - EXPECT_LT(TimeValue::MinTime(), process::get_self()->get_user_time()); - EXPECT_GT(TimeValue::MaxTime(), process::get_self()->get_user_time()); - EXPECT_LT(TimeValue::MinTime(), process::get_self()->get_system_time()); - EXPECT_GT(TimeValue::MaxTime(), process::get_self()->get_system_time()); - EXPECT_LT(TimeValue::MinTime(), process::get_self()->get_wall_time()); - EXPECT_GT(TimeValue::MaxTime(), process::get_self()->get_wall_time()); -} - TEST(ProcessTest, GetRandomNumberTest) { const unsigned r1 = Process::GetRandomNumber(); const unsigned r2 = Process::GetRandomNumber(); |