From 814afe91ccad0e5e1f767303d780fa0318fa5212 Mon Sep 17 00:00:00 2001 From: Chandler Carruth Date: Mon, 31 Dec 2012 23:23:35 +0000 Subject: 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171330 91177308-0d34-0410-b5e6-96231b3b80d8 --- unittests/Support/ProcessTest.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'unittests') diff --git a/unittests/Support/ProcessTest.cpp b/unittests/Support/ProcessTest.cpp index d4c4b54ccc..58a7c4acaa 100644 --- a/unittests/Support/ProcessTest.cpp +++ b/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 -- cgit v1.2.3