11ac525b2SMichael Jones //===-- Unittests for sysconf ---------------------------------------------===// 21ac525b2SMichael Jones // 31ac525b2SMichael Jones // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 41ac525b2SMichael Jones // See https://llvm.org/LICENSE.txt for license information. 51ac525b2SMichael Jones // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 61ac525b2SMichael Jones // 71ac525b2SMichael Jones //===----------------------------------------------------------------------===// 81ac525b2SMichael Jones 91ac525b2SMichael Jones #include "src/unistd/sysconf.h" 10af1315c2SSiva Chandra Reddy #include "test/UnitTest/Test.h" 111ac525b2SMichael Jones 121ac525b2SMichael Jones #include <unistd.h> 131ac525b2SMichael Jones TEST(LlvmLibcSysconfTest,PagesizeTest)141ac525b2SMichael JonesTEST(LlvmLibcSysconfTest, PagesizeTest) { 15*b6bc9d72SGuillaume Chatelet long pagesize = LIBC_NAMESPACE::sysconf(_SC_PAGESIZE); 161ac525b2SMichael Jones ASSERT_GT(pagesize, 0l); 171ac525b2SMichael Jones } 18