Cleaning up static initializers in TimeValue.

Code reviewed by Chandlerc

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@216703 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Bieneman
2014-08-29 01:05:12 +00:00
parent 79e9b30b11
commit 77bf4f97bf
4 changed files with 22 additions and 18 deletions

View File

@ -31,12 +31,12 @@ TEST(ProcessTest, SelfProcess) {
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());
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) {