summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/Support
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2012-12-31 23:23:35 +0000
committerChandler Carruth <chandlerc@gmail.com>2012-12-31 23:23:35 +0000
commit15dcad9e36029d715163d1c374a042d1e50f281f (patch)
treeb18f66c66e626306aa8c232a319ec849343f946f /llvm/unittests/Support
parentaadd30ec52c0e3a5fd478c9b89b4a33108d4affc (diff)
downloadbcm5719-llvm-15dcad9e36029d715163d1c374a042d1e50f281f.tar.gz
bcm5719-llvm-15dcad9e36029d715163d1c374a042d1e50f281f.zip
Flesh out a page size accessor in the new API.
Implement the old API in terms of the new one. This simplifies the implementation on Windows which can now re-use the self_process's once initialization. llvm-svn: 171330
Diffstat (limited to 'llvm/unittests/Support')
-rw-r--r--llvm/unittests/Support/ProcessTest.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/unittests/Support/ProcessTest.cpp b/llvm/unittests/Support/ProcessTest.cpp
index d4c4b54ccca..58a7c4acaaa 100644
--- a/llvm/unittests/Support/ProcessTest.cpp
+++ b/llvm/unittests/Support/ProcessTest.cpp
@@ -28,6 +28,8 @@ TEST(ProcessTest, SelfProcess) {
#elif defined(LLVM_ON_WIN32)
EXPECT_EQ(GetCurrentProcess(), process::get_self()->get_id());
#endif
+
+ EXPECT_LT(1u, process::get_self()->page_size());
}
} // end anonymous namespace
OpenPOWER on IntegriCloud