diff options
author | Mark Benvenuto <mark.benvenuto@mongodb.com> | 2015-12-17 17:11:57 -0500 |
---|---|---|
committer | Mark Benvenuto <mark.benvenuto@mongodb.com> | 2015-12-21 15:40:47 -0500 |
commit | b0119fe1b269546ef3bf84ca5c2e2a3dbc2781c8 (patch) | |
tree | 28fc57b819b71651ba9492abc585f4b76c717589 | |
parent | e2e4c75844f01e0aba6423502c828119b5287764 (diff) | |
download | mongo-b0119fe1b269546ef3bf84ca5c2e2a3dbc2781c8.tar.gz |
SERVER-21844 processinfo_test fails on ppc64
-rw-r--r-- | src/mongo/util/processinfo_test.cpp | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/mongo/util/processinfo_test.cpp b/src/mongo/util/processinfo_test.cpp index 18c5b934550..a51f45654e7 100644 --- a/src/mongo/util/processinfo_test.cpp +++ b/src/mongo/util/processinfo_test.cpp @@ -48,25 +48,4 @@ TEST(ProcessInfo, NonZeroPageSize) { ASSERT_GREATER_THAN(ProcessInfo::getPageSize(), 0u); } } - -const size_t PAGES = 10; - -TEST(ProcessInfo, BlockInMemoryDoesNotThrowIfSupported) { - if (ProcessInfo::blockCheckSupported()) { - static char ptr[4096 * PAGES] = "This needs data to not be in .bss"; - ProcessInfo::blockInMemory(ptr + ProcessInfo::getPageSize() * 2); - } -} - -TEST(ProcessInfo, PagesInMemoryIsSensible) { - if (ProcessInfo::blockCheckSupported()) { - static char ptr[4096 * PAGES] = "This needs data to not be in .bss"; - ptr[(ProcessInfo::getPageSize() * 0) + 1] = 'a'; - ptr[(ProcessInfo::getPageSize() * 8) + 1] = 'a'; - std::vector<char> result; - ASSERT_TRUE(ProcessInfo::pagesInMemory(const_cast<char*>(ptr), PAGES, &result)); - ASSERT_TRUE(result[0]); - ASSERT_TRUE(result[8]); - } -} } |