Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / libc / test / src / unistd / sysconf_test.cpp
blob85bc1258a4863855e39c981c8e41e0f739836845
1 //===-- Unittests for sysconf ---------------------------------------------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
9 #include "src/unistd/sysconf.h"
10 #include "test/UnitTest/Test.h"
12 #include <unistd.h>
14 TEST(LlvmLibcSysconfTest, PagesizeTest) {
15 long pagesize = LIBC_NAMESPACE::sysconf(_SC_PAGESIZE);
16 ASSERT_GT(pagesize, 0l);